Stig Bakken
c78e847153
* update class doc-comment
2001-04-20 13:04:30 +00:00
Stig Bakken
20c4b9c7b9
* fixed up the XML-RPC class so it's useful at least (based on usefulinc 1b8)
2001-04-20 12:12:35 +00:00
Tomas V.V.Cox
cf080fb73f
fix small bug on error reporting (PEAR::raiseError params order)
2001-04-19 23:56:57 +00:00
Stig Bakken
fa6f3a3617
* fixed DB_common::getXxx when using the parameter array (didn't work before)
2001-04-19 21:54:37 +00:00
Stig Bakken
2966cc538b
* cotcha, Tomas
2001-04-19 12:31:20 +00:00
Ulf Wendel
457c638bfb
- fixed the garbage collection
...
Added some kind of LRU to delete all entries older than n seconds.
This fixes the bug that cache entries with lifetime 0 (endless) never
got removed although if they are no longer used. What's still missing
is some space limit for cache data.
2001-04-19 11:04:01 +00:00
Stig Bakken
43bba67988
* forgot to update this test too
2001-04-19 02:40:35 +00:00
Stig Bakken
2e4ecd5cab
* DB_common now inherits PEAR and its error handling stuff
...
* DB_common::raiseError is now just a wrapper for PEAR::raiseError
* fixed some cast warnings in prepare/execute
* updated tests
2001-04-19 02:37:47 +00:00
Stig Bakken
4f84d76ed7
* check that error callbacks exist
2001-04-19 02:33:24 +00:00
Stig Bakken
ad8dbb8d10
* added Colin's connect/factory error reporting fix
2001-04-19 02:32:33 +00:00
Stig Bakken
b16f38e2e7
* fix handling of broken DSNs like Colin suggested
2001-04-18 23:03:18 +00:00
Stig Bakken
90c1355a75
* PEAR_Installer un-broken again, it still doesn't update the
...
package list though
* better error handling in "pear" script
2001-04-17 02:33:45 +00:00
Stig Bakken
2723ad2e63
* have DB.php use PEAR::raiseError in factory methods
2001-04-17 01:51:27 +00:00
Stig Bakken
266cc59f06
* enable static use of PEAR::raiseError
2001-04-17 01:29:48 +00:00
Stig Bakken
457333c1fd
* implemented PEAR_Packager to make distribution packages. Currently only
...
runs on platforms with GNU tar installed
* the "pear" script now requires a command parameter (similar to cvs),
for example "pear package Cache.xml"
* broke PEAR_Installer :-)
2001-04-17 01:17:59 +00:00
Stig Bakken
f35cef5928
* DB::isManip now handles create, drop, alter, grant, revoke.
2001-04-16 22:16:38 +00:00
Stig Bakken
ee17aae3ac
* make the error class used by raiseError configurable (_error_class property,
...
overridden by first parameter to constructor)
2001-04-16 21:45:21 +00:00
Stig Bakken
d3bb832585
* actually commit the stuff I said I had committed :-)
2001-04-16 21:24:38 +00:00
Stig Bakken
1bdc3d7478
* added sgml/xml catalog file
2001-04-15 23:53:09 +00:00
Stig Bakken
a90c2198e0
* add a package type called empty (default)
2001-04-15 23:52:42 +00:00
Stig Bakken
81e1ef0ad7
* PEAR: look for destructor methods in parent classes if
...
the current class does not have one
2001-04-13 22:24:33 +00:00
Sascha Schumann
466c226415
Revert mega patch.
...
This patch has at least the following deficiences:
- the CGI is built using objects from another SAPI module.
This usually results in unsatisfied symbol references.
- the CGI makefile is not created properly
- building CGI cannot be disabled
2001-04-09 15:47:19 +00:00
Stig Bakken
a4877d7afd
* CGI version is always installed!
...
* replaced --disable-pear with --with-pear=DIR (or --without-pear),
is backwards compatible
* use --datadir, --libdir and --sysconfdir configure options to determine
where PEAR files, shared extensions and php.ini goes
* simplified the extension version directory name
2001-04-08 22:30:17 +00:00
Wilfredo Sanchez
0df6e8dd88
Add INSTALL_ROOT variable to specify install location.
2001-04-03 20:59:50 +00:00
Jon Parise
c20a6ff9dc
Cleaner (and probably safer) condition handling.
2001-04-03 03:12:49 +00:00
Ulf Wendel
2a7b87a162
- Renamed the file following Thies suggestion
...
100% beginners compatible politics of the PHP core guys: I was (again) allowed to make a mistake without beeing kicked - cool, thanks!
2001-03-30 09:16:54 +00:00
Ulf Wendel
e294ebbc6d
- uuups, modified the package.dtd, undo
2001-03-29 22:01:52 +00:00
Ulf Wendel
f20f37f8ad
- Added a package xml file for IT[X] templates
2001-03-29 21:54:27 +00:00
Chuck Hagenbuch
183b651a84
Fix a couple of warnings when calling PEAR::raiseError() statically.
2001-03-29 19:54:27 +00:00
Ulf Wendel
b8f18cbc3d
- package XML for the Cache
...
I'm not sure how to use the package.dtd to document packages and if at all the Cache can be it's own package, but one has to start with it... Sterling, Stig can you give me a hint?
2001-03-29 15:01:16 +00:00
Tomas V.V.Cox
1910b18164
pgsql.php
...
* better handling of $rownum param in fetchInto()
* changed property numrows[] to num_rows[]
DB.php
* $rowmun in fetch* now defaults to NULL
mysql.php
* added default $fetchmode to ordered
* removed extra checks in connect()
* fetchrow() now uses fetchInto()
* added the "fetch absolute row numbers" feature to fetchInto()
(not tested)
ifx.php
* better handling of $rownum param in fetchInto()
2001-03-28 23:52:21 +00:00
Ulf Wendel
f5efe02d88
Added a simple usage example
2001-03-28 18:32:20 +00:00
Tomas V.V.Cox
88d526ec5b
pgsql.php
...
* connect() always use pg_connect string instead of the deprecated params
mode
* removed duplicated functions prepare() and execute() (now in common.php)
* pgsqlRaiseError() always fills native error param on DB_error objs
* added third param $rownum to fetchInto() so users can fetch also absolute
row numbers
* changed fetchRow() to use fetchInto() (can not erase, still used in get*()
from common.php
DB.php
* added third param $rownum to fetchInto()/fetchRow() so users can fetch
also absolute row numbers
* changed fetchRow() to use fetchInto()
2001-03-26 23:31:49 +00:00
Jon Parise
0f99a7abea
Install the Informix database implementation.
2001-03-24 21:48:41 +00:00
Sebastian Bergmann
a92a7018e8
Added missing files.
2001-03-24 21:40:25 +00:00
Stig Bakken
48aa99f6be
* added Christian Stocker's tableInfo() implementation
2001-03-24 07:00:44 +00:00
Stig Bakken
4651aa04c0
* fixed Oracle tests, fixed some bugs in DB_oci8, all tests but
...
errorNative() pass now (but that may be a bug in the test :-)
* implemented numRows() emulation in DB_oci8 that is available
in "optimize portability" mode only
2001-03-23 01:15:05 +00:00
Jon Parise
d4952b482e
Style and whitespace, based mostly on a submission from
...
"Tomas V.V.Cox" <cox@idecnet.com>.
2001-03-21 04:15:40 +00:00
Christian Stocker
fcdd641539
GarbageCollection was moved into a PEAR-Deconstructor
2001-03-17 16:06:31 +00:00
Colin Viebrock
83848d2e1f
Forgot to add it here
2001-03-12 19:35:28 +00:00
Stig Bakken
7a7590002c
HEADS UP: renamed config header file in "phpize"d extensions to
...
"config.h" rather than "php_config.h".
2001-03-12 09:54:26 +00:00
Andrei Zmievski
2d54fb39b9
Use proper class name.
2001-03-12 03:05:04 +00:00
Jon Parise
cf48573277
Revised version of the parseDSN function.
...
Submitted by: "Tomas V.V.Cox" <cox@idecnet.com>
2001-03-11 23:26:18 +00:00
Stig Bakken
adc498e705
* only register the destructor if it exists
2001-03-10 09:59:15 +00:00
Ulf Wendel
dc5f1ed519
Formatting and minor inline doc changes.
2001-03-08 20:41:39 +00:00
Ulf Wendel
78c050114c
Added a basic Cache_Error class.
2001-03-08 20:39:15 +00:00
Sebastian Bergmann
9e43c35158
Whitespace only.
2001-03-06 15:27:30 +00:00
Martin Jansen
b9749a40cc
fixed typo
2001-03-04 14:26:58 +00:00
Ulf Wendel
0cf7edb4a5
The main file with new features.
...
- added support for cache dataset groups
- added extSave() - see my next PEAR list posting
- added getUserdata()
2001-03-03 19:21:49 +00:00
Sebastian Bergmann
fdadc6342d
Whitespace only.
2001-03-02 10:29:34 +00:00
Sebastian Bergmann
6fcde257f3
Added experimental version of Cache_Function module.
2001-03-02 07:52:56 +00:00
Sebastian Bergmann
34f81476f1
Added Graphics and Output Cache.
2001-03-01 19:22:25 +00:00
Chuck Hagenbuch
217ac2778c
missing a backslash
2001-03-01 17:02:05 +00:00
Chuck Hagenbuch
e591ae24cb
update the makefile for the new Cache classes.
2001-03-01 16:33:34 +00:00
Chuck Hagenbuch
b917f1e159
use standard naming/capitalization, and do a bit of error checking when
...
instantiating the storage classfile.
2001-03-01 16:32:28 +00:00
Chuck Hagenbuch
6bbecd4c07
factory-generated classes have lowercase subclass names by our (newly
...
revised) standards.
2001-02-22 16:01:14 +00:00
Stig Bakken
c685f25d33
* allow empty passwords in dsn (for example "mysql://user:@database")
2001-02-20 23:00:08 +00:00
Jon Parise
a7679d2556
Go back to listing the copyright years explicitly (instead of using a
...
range).
2001-02-18 17:47:43 +00:00
Chuck Hagenbuch
0b11c910f5
All DB modules should return NULL from fetchRow() now if there are no more
...
results, and a DB_Error object only on an error.
DB::isError() return false when passed null now.
2001-02-16 17:14:39 +00:00
Anders Johannsen
c484140cfa
Fixed indentation problems related to use of TAB instead of spaces
2001-02-12 00:38:28 +00:00
Anders Johannsen
7eb2ad0d81
The Cmd:: class implements an abstraction for various ways
...
of executing commands (directly using the backtick operator,
as a background task after the script has terminated using
register_shutdown_function() or as a detached process using nohup).
2001-02-11 21:39:13 +00:00
Chuck Hagenbuch
5182488725
may as well go by the capitalization we agreed on sooner rather than later.
2001-02-07 20:22:59 +00:00
Colin Viebrock
2265b5b4c5
I think this should've been changed as well, right?
2001-02-02 17:59:30 +00:00
Chuck Hagenbuch
38fae9bae4
make sure to include subclasses before trying to instantiate them.
2001-02-02 05:24:31 +00:00
Colin Viebrock
e365fc21e9
trigger_error() should be ($msg,$level), no?
2001-02-01 20:15:08 +00:00
Chuck Hagenbuch
00b84703f8
use $HTTP_SERVER_VARS, in case register_globals is Off, and use !empty()
...
instead of just if () to avoid errors.
2001-01-31 18:34:39 +00:00
Stig Bakken
1a07f60b92
whitespace
2001-01-31 01:27:09 +00:00
Stig Bakken
86c5a77ed9
@Allow url encoding in DB usernames and passwords (Stig, PEAR)
2001-01-30 08:34:55 +00:00
Stig Bakken
7cf00c7076
@Added raiseError and setErrorHandling methods to PEAR class (Stig, PEAR)
...
# This allows all objects to have their own default error handling
# or use a global default.
2001-01-30 00:55:27 +00:00
Chuck Hagenbuch
b4378dcf80
have DB::isError return true if passed "null". Now you can more consistently
...
use DB::isError(), since some of the db drivers return nulls from various
functions (like fetchRow()), and others don't... We should probably make all
of them just return errors. I did this for the mysql driver, as a start.
2001-01-26 20:07:22 +00:00
Colin Viebrock
35a1731c85
Forgot this too ...
2001-01-23 21:09:55 +00:00
Colin Viebrock
f07b32969f
Never added this ...
2001-01-23 21:08:13 +00:00
Chuck Hagenbuch
dea0e01fa8
install the various HTML/* files
2001-01-20 05:39:26 +00:00
Sascha Schumann
d0c2255750
Fix make install in VPATH builds
2001-01-13 10:02:08 +00:00
Chuck Hagenbuch
5faaf2436f
Add HTTP_Compress::, which provides an easy wrapper around producing
...
gzip-compressed html. This should be ported to use the ob_gzhandler() output
handler, but I haven't had a chance to look into that yet.
2001-01-12 15:24:21 +00:00
Mika Tuupola
946fe57119
PR:
...
Submitted by:
Reviewed by:
Obtained from:
Added Image_Remote class.
2001-01-12 09:13:55 +00:00
Andrei Zmievski
1346295d86
@- Added Console_Getopt class for parsing command-line args. (Andrei, PEAR)
2001-01-11 18:38:26 +00:00
Stig Bakken
6792978aed
* updated copyrights (thanks Colin)
...
* moved scripts to own directory (bug #7635 )
2001-01-10 01:01:59 +00:00
Colin Viebrock
4f43188762
I should learn how to spell
...
PR:
Submitted by:
Reviewed by:
Obtained from:
2001-01-09 21:15:26 +00:00
Colin Viebrock
b09b97ff4b
Now the coding standards are defined elsewhere ...
...
PR:
Submitted by:
Reviewed by:
Obtained from:
2001-01-09 21:12:55 +00:00
Jon Parise
b0234843f8
Update the copyright year range to 1997-2001.
2001-01-09 17:42:40 +00:00
Hartmut Holzgraefe
574eaa8ed4
fix for Bug id #8606
2001-01-09 07:28:27 +00:00
Stig Bakken
3d158a845c
* display a notice when downloading
2001-01-08 02:54:35 +00:00
Stig Bakken
c43cad2f40
* no need for this test file anymore
2001-01-08 02:48:35 +00:00
Stig Bakken
12d0b86803
* updated DB status
...
* updated the "pear" script, it can install basic packages now
2001-01-08 02:45:30 +00:00
Jon Parise
e14aeb8668
Fix typo. This one was my fault, anyway.
2001-01-07 05:24:21 +00:00
Chuck Hagenbuch
fc289c973a
list the correct modeline for vi.
2001-01-07 04:39:27 +00:00
Chuck Hagenbuch
6005910da2
add File/Passwd.php to the install rules, and change the class name to
...
File_Passwd to match our standard.
2001-01-05 20:05:27 +00:00
Chuck Hagenbuch
12f2d57caa
revert Jon's patch, leaving only the correct one.
2001-01-05 20:03:01 +00:00
Jon Parise
41f165e022
$from_arr is a two-dimensional array here. Treat it as such.
...
Submitted by: Max Kalika <max@the-triumvirate.net>
2001-01-05 19:59:00 +00:00
Chuck Hagenbuch
6e9061f40a
make sure we get back a flat array from parseAddressList().
2001-01-05 19:53:01 +00:00
Chuck Hagenbuch
4fe3182b1f
initial coding standards doc for all to argue over.
2001-01-05 05:46:59 +00:00
Chuck Hagenbuch
542fa4eace
fix the Log::factory() method to assume that the Log stuff is in the
...
include_path (like all of PEAR does).
2001-01-04 15:56:05 +00:00
Chuck Hagenbuch
b83ee202c4
Mail.php: use the Mail_rfc822:: class to parse addresses. There is a small
...
performance penalty, but it handles rfc822 groups, which
imap_rfc822_parse_adrlist doesn't.
rfc822.php: Style fixes, some small tweaks/optimizations, and work around a
bit of object weirdness that caused the test for $this (to see if we were
being called statically) to not be sufficient.
2001-01-03 18:24:20 +00:00
Chuck Hagenbuch
3ef382dfcd
add Numbers/Roman.php, Net/Curl.php, and XML/RPC.php to the install rules.
2001-01-03 15:13:29 +00:00
Chuck Hagenbuch
b7c12ab483
add allan@lodestone.co.za's Date_Human calculator class.
2001-01-03 05:14:39 +00:00
Chuck Hagenbuch
29854e9555
here's an initial version of Richard Heyes' rfc822 email address parser.
2001-01-03 05:10:42 +00:00
Chuck Hagenbuch
765b8435cb
install the Math/* files.
2000-12-20 19:08:29 +00:00
Sebastian Bergmann
71348b8b9e
Initial commit of Function_Cache.
2000-12-10 18:40:23 +00:00
Stig Bakken
9f0fc7db8b
* DB::isManip counts "REPLACE" as a manipulation command (MySQL specific)
...
* renamed DB_common::execute_emulate_query to DB_common::executeEmulateQuery
* moved "query" DB method to DB_common, there was duplicated logic in query
and simpleQuery in all backends.
2000-12-10 01:32:16 +00:00
Stig Bakken
efbc4a2566
* applied fetch modes patch for odbc by Richard M. Yumul
...
* added DB::isManip so we have _one_ place for testing whether something
is a data manipulation query
* when passed a string as its first constructor arg, DB_Error now uses
the error code DB_ERROR rather than just 0
* implemented auto-commit for ibase (not yet fully tested)
* fixed persistent connections in odbc
2000-12-08 02:30:43 +00:00
Stig Bakken
8f74a36858
* added Sebastian's affectedRows() and numRows() for MySQL
...
* added regression test for DB_mysql::affectedRows
* fixed some PEAR_Error based tests that had broken (line number change)
2000-12-07 19:53:27 +00:00
Sascha Schumann
9d50bc0161
Fix Makefile template.
2000-12-07 11:27:35 +00:00
Chuck Hagenbuch
6ccfc3fb15
Contribute Horde's Log:: abstraction class to PEAR.
2000-12-07 01:06:58 +00:00
Stig Bakken
cc9d7fc744
* cleanup
2000-12-06 02:53:14 +00:00
Stig Bakken
dca0d5852d
#With "php -f file.php", file.php is unable to parse command-line
...
#options because they are swallowed by PHP. Use "-q" option instead to
#avoid this but still supress HTTP headers.
2000-12-06 02:52:37 +00:00
Stig Bakken
48e7da206f
* MySQL sequence emulation using auto_increment
...
* fixed indentation
2000-12-05 07:00:57 +00:00
Chuck Hagenbuch
c18ce859cb
have PEAR::isError() not take parameters by reference for now.
2000-12-04 21:03:17 +00:00
Sebastian Bergmann
c20df37045
No comment.
2000-12-04 07:05:16 +00:00
Sebastian Bergmann
676bb6b9a0
I couldn't read it in order to understand it in order to extend it :-)
2000-12-04 06:56:29 +00:00
Chuck Hagenbuch
65150b8512
add a Crypt_HCEMD5 class. This implements the same algorithm as the perl
...
Crypt::HCE_MD5 package, and should be cross-compatible with it. It provides
a secret-key based encryption algorithm possibly suitable for those who
don't have mcrypt enabled.
2000-11-06 22:33:09 +00:00
Chuck Hagenbuch
24343cd5c0
spelling. bad chuck.
2000-11-02 21:40:38 +00:00
Chuck Hagenbuch
e6b6213619
always prepend Receieved: headers to avoid generating mail that looks like
...
spam, and remove a silly comment from the sendmail backend.
2000-11-02 20:20:39 +00:00
Sascha Schumann
ea6985a225
PATH is not optional (we print that message, because php-config isn't in the
...
PATH).
2000-10-30 18:27:46 +00:00
Chuck Hagenbuch
383a5e7d49
Install the new Mail classes.
2000-10-25 17:23:34 +00:00
Chuck Hagenbuch
167c0a0277
add Mail:: interface and supporting classes.
2000-10-25 17:16:08 +00:00
Monte Ohrt
8fbf6ca7c5
update for Date_Calc install
2000-10-17 20:41:28 +00:00
Stig Bakken
d004ea17c3
PEAR DB: added DB_ERROR_VALUE_COUNT_ON_ROW
2000-10-15 09:02:54 +00:00
Stig Bakken
be60fcb11a
PEAR DB: added DB_ERROR_NOT_LOCKED, gave DB_common::raiseError an optional
...
"nativecode" parameter.
2000-10-15 02:22:25 +00:00
Chuck Hagenbuch
9bd721eb10
fix make install for PEAR. (bug 7109)
2000-10-12 14:02:26 +00:00
Chuck Hagenbuch
09f89187f4
Add File_SearchReplace class from Richard Heyes.
2000-10-08 14:55:13 +00:00
Chuck Hagenbuch
7b5ba2f1fd
install Benchmark/Iterate.php
2000-09-30 04:03:46 +00:00
Chuck Hagenbuch
7a4e086d7a
move the timer class to Benchmark/Timer.php, and add it to Makefile.in so it
...
gets installed.
2000-09-28 14:59:41 +00:00
Sebastian Bergmann
39752c2ed0
Removed profiling_information() in favour of a more generalized approach with get_profiling().
2000-09-28 11:45:13 +00:00
Sebastian Bergmann
7ad1cf5785
Hopefully converted all TABs to SPACEs
2000-09-28 07:27:05 +00:00
Sebastian Bergmann
ee11aabc30
Added PEAR/Timer class for timing script execution and generating profiling information. This class is based upon a concept by Allan Kent shown in his article on PHPBuilder.com
2000-09-28 07:21:21 +00:00
Rui Hirokawa
d4cd24c22d
correct the problem configure script doesn't output Makefile as shared extension.
2000-09-26 14:25:02 +00:00
Stig Bakken
7c53e635b2
PEAR:
...
* added $debuginfo parameter to PEAR_Error constructor
* put last query in $debuginfo from DB_common::raiseError()
@PEAR: add last executed query as debug info in DB errors (Stig)
2000-09-13 11:27:59 +00:00
Stig Bakken
63aec84825
PEAR:
...
* show what's going on when PEAR files are installed
* allow multiple modes (or'ed) in PEAR_Error
@PEAR: allow multiple modes in PEAR_Error (Stig)
2000-09-13 07:39:54 +00:00
Stig Bakken
f29b5131d3
@PEAR: renamed DB_GETMODE_* to DB_FETCHMODE_*, added setFetchMode()
...
@ in DB_common to set the default mode, added some MySQL tests (Stig)
2000-09-12 00:27:50 +00:00
Stig Bakken
971f8b0881
@Added a more configurable error reporting interface to DB.
...
Added a more configurable error reporting interface to DB.
Also added some more tests, and moved the DB tests to pear/DB/tests.
#Usage example that prints and exits on every error:
#$dbh = DB::connect($dsn);
#$dbh->setErrorHandling(PEAR_ERROR_DIE);
#
#Example with plain callback function:
#$dbh->setErrorHandling(PEAR_ERROR_CALLBACK, "errorHandler");
#
#Example with object callback function:
#$dbh->setErrorHandling(PEAR_ERROR_CALLBACK, array($obj, "errorHandler"));
#
#Handler functions/methods are called with the error object as a parameter.
#
2000-09-09 02:39:56 +00:00
Andrei Zmievski
0fddc30b7a
- Converted __string_value() to toString(), since the former is obsolete.
...
- Made sure DB results are freed where necessary.
- Made DB::getAssoc() use $params if passed.
- Implemented DB::getAll().
2000-09-07 16:36:22 +00:00
Stig Bakken
83ba61245c
All (three) current DB tests pass.
2000-08-29 09:10:44 +00:00
Stig Bakken
54e911aa4f
* renamed toString method to __string_value
2000-08-28 23:09:36 +00:00
Stig Bakken
5b2719d9b3
I said I had not _tested_ this on windows, didn't I? :-)
2000-08-28 07:03:51 +00:00
Stig Bakken
490de54fb5
undid the undoing of Sascha's last commit
2000-08-27 19:49:15 +00:00
Stig Bakken
315f4f5658
@PHP 3 regression testing framework re-born (Stig)
...
Took the old PHP 3 regression testing framework and rewrote it in PHP.
Should work on both Windows and UNIX, however I have not tested it on
Windows. See tests/README for how to write tests. Added the PHP 3
tests and converted most of them.
2000-08-27 19:46:06 +00:00
Sascha Schumann
bf94671c3c
Fix install-local-data target in VPATH mode. PEAR.php is generated and
...
stored in builddir.
2000-08-27 11:10:38 +00:00
Sascha Schumann
f1ec9035fc
Add new depend rule to rules_pear.mk and install mkdep.awk.
2000-08-25 07:22:05 +00:00
Sterling Hughes
3f97600862
Remove bogus commit that made DB::DB() an alias for DB::connect()
2000-08-24 18:18:49 +00:00
Sascha Schumann
876bac4823
builddir is used by the Unix build framework.
...
Rename builddir to phpbuilddir
2000-08-24 12:02:05 +00:00
Sterling Hughes
4850e34bf3
-Add getCode() method to PEAR_Error
...
-Correct license versions + My Address for DB/* mods
-Correct ibase module
-Javadocize File_Find
-Add a optional constructor to DB that passes it on to DB::connect()
2000-08-24 01:34:16 +00:00
Sascha Schumann
4e7ab5ec7b
phpextdist is located in $(srcdir), so don't try to install it from
...
$(builddir).
2000-08-23 14:07:24 +00:00
Chuck Hagenbuch
dc2362069e
Make the DB classes work with call-time pass-by-reference disabled.
2000-08-21 14:37:47 +00:00
Sascha Schumann
97c698a178
Relicense build-related files under the PHP License
...
Move common make rules to rules_common.mk. This gets rid of the duplicated
stuff in rules.mk/rules_pear.mk.
2000-08-20 05:36:07 +00:00
Sascha Schumann
c28eac2f6c
Fix dependency. PEAR.php needs to be created before it can be installed.
2000-08-17 11:02:10 +00:00
Stig Bakken
def1424b12
@Added XML_Parser class in PEAR (Stig)
...
@Added "make test" target in pear/ and added some regression tests (Stig)
Also fixed a bug in the PEAR class that was discovered when testing :-)
2000-07-30 17:41:31 +00:00
Stig Bakken
4575fe5a7c
* PEAR now stands for "PHP Extension and Application Repository"
2000-07-28 21:05:00 +00:00
Chuck Hagenbuch
44a46d2a75
Moving the Socket class to Net/Socket.php, and basing it on code that Stig
...
wrote, with a few extra utility functions from my old class.
Stig, I mucked with the constructor a bit since it didn't quite make sense
exactly as it was - does it still do what was intended?
Also, are the emacs folding things (// {{{ functionname() ...) a PEAR
standard? How do they fit with the javadoc?
2000-07-28 15:27:18 +00:00
James L. Pine
96a35a3eea
added DB/oci8.php to PEAR_FILES
2000-07-27 17:18:26 +00:00
Chuck Hagenbuch
5ec120366c
Add a Socket class. If this should be somewhere other than top-level, just
...
let me know - none of the existing subdirectories made sense to me, and I
didn't want to add a new one just for this.
2000-07-27 13:47:45 +00:00
Stig Bakken
c63410f6be
Multiple DB::connect or DB::factory calls using the same backend
...
should work now.
2000-07-26 09:57:06 +00:00
Stig Bakken
e0b531d5f4
* the beginning of a regression testing framework?
2000-07-25 00:55:37 +00:00
Stig Bakken
fbc947f43f
* generate pear scripts properly with configure
2000-07-24 23:55:34 +00:00
Stig Bakken
576b6e9236
* PEAR.php is now generated by configure
2000-07-24 23:54:26 +00:00
Stig Bakken
9f7874ccc5
added TODO file for PEAR
2000-07-24 13:32:50 +00:00
David Croft
96eada8f80
licence versions -> 2.02 in pear files
2000-07-24 10:31:43 +00:00
Stig Bakken
e0924de112
@Ported DB to new error reporting scheme
2000-07-24 08:24:14 +00:00
Stig Bakken
0f0f1cebcb
* new class: PEAR - can be used as a base class for others.
...
* PEAR_Error moved into PEAR.php to reduce the number of files that are
always included
* cleaned up the PEAR_Error API a bit and changed the two classes using it
* added PEAR_Installer - an administration class for installing packages
and maintaining a "class/file cache"
2000-07-24 08:05:51 +00:00
David Croft
0836e10a15
various version 2.0 and 2.01 licenses -> 2.02
2000-07-24 05:41:02 +00:00
Sterling Hughes
bf6e7e8034
Remove $file and $line.
2000-07-23 17:10:06 +00:00
Sterling Hughes
f66de59603
New naming sequence for PEAR_Error
...
- PEAR_ERROR -> PEAR_Error
- $CLASSNAME -> $classname
New naming sequence for Exceptions
- ExceptionFileFind -> FileFindException.
2000-07-21 18:34:37 +00:00
Rasmus Lerdorf
9ea35f0d28
Fix this address
2000-07-21 16:39:18 +00:00
Sterling Hughes
4773b98ac6
Add PEAR_ERROR class for returning exception objects.
...
# This is the basic idea that Ulf proposed, its obviously
# going to be subject to modifications.
2000-07-21 06:47:18 +00:00
Stig Bakken
8b824d99fa
@Added "pear" executable, requires CGI version installed (Stig)
2000-07-17 22:52:08 +00:00
Chuck Hagenbuch
75879e3f18
i don't think there's a reason to nuke the db handle here (when freeing
...
results).
2000-07-02 19:04:36 +00:00
Chuck Hagenbuch
353dcc835f
DB::parseDSN() now checks the value it is passed, and if it is already an
...
array, returns it. This lets you pass arrays to the connect functions and
they'll work transparently.
2000-06-30 19:20:03 +00:00
Sascha Schumann
dfaaa8ff95
Also install XML-related header files.
2000-06-24 15:45:24 +00:00
Chuck Hagenbuch
c80c71f48b
Here is a brief start towards getting the DB stuff up to speed and working
...
(I need it to move forward on some stuff, and I really do want to see PEAR
succeed, so I'm going to work with the official code to get it working. Hope
that's okay). I've replaced all instances of 'use' and 'import' with
'include_once' (and added the .php extension where necessary). This gets my
short test script working. More possibly to come.
2000-06-21 02:22:04 +00:00
Sascha Schumann
e53b791b3e
Copy header files from main and also add that directory to the list
...
of include directories.
2000-06-14 08:30:37 +00:00
Sascha Schumann
e4e7047e4a
Use the new PHP_GEN_* macros in pear
2000-06-14 06:30:14 +00:00
Sascha Schumann
fbfd92c775
Fix regex
2000-05-06 01:41:14 +00:00
Sascha Schumann
9f6976d6d5
Complain loudly, if we were not able to install everything.
2000-05-02 22:28:12 +00:00
Sterling Hughes
515b7e74df
adda dir..
2000-05-02 22:10:41 +00:00
Sascha Schumann
3b9bcd7443
Set abs_srcdir. Last example in README.S-C-EXTENSIONS works now.
2000-05-02 21:20:56 +00:00
Sascha Schumann
cae3b7dff5
Pear Changes:
...
Store EXTENSION_DIR in php-config
Ignore errors during header installation
Automatically enable modules in self-contained mode
Create empty .deps in builddir
2000-05-02 20:56:03 +00:00
Sascha Schumann
5989ae5dc1
Fix building external extensions.
2000-05-02 20:10:46 +00:00
Sascha Schumann
7613e064f8
Remove trailing empty lines
2000-05-01 22:38:42 +00:00
Sascha Schumann
0d36199cf9
Large test commit IV
2000-05-01 22:04:52 +00:00
Sascha Schumann
de2cea47c0
Large commit test III
2000-05-01 22:00:09 +00:00
Sascha Schumann
1d4e698aca
Copy dynlib.mk to the build directory.
2000-05-01 02:57:50 +00:00
Sascha Schumann
953fe189da
Overall UNIX build system improvements:
...
* Makefile header is now completely dynamic
* Absolute paths in (top_)?(src|build)dir and VPATH
(fixes Tru64 support)
* VPATH does not contain variables anymore
(fixes UnixWare support)
2000-04-30 03:20:09 +00:00
Sterling Hughes
e5df341868
TODO:
...
Just did that.
PEAR:
Fix typo
2000-04-23 19:19:56 +00:00
Sterling Hughes
645156918c
Add a new directory for File (it was supposed to be there
...
in the first place).
2000-04-23 04:47:45 +00:00
Sterling Hughes
3f029b61e8
*** empty log message ***
2000-03-27 16:35:01 +00:00
Sterling Hughes
6fb861d7a8
*** empty log message ***
2000-03-27 16:21:15 +00:00
Sascha Schumann
6da32c3314
Ignore errors at this place
2000-03-26 19:46:42 +00:00
Stig Bakken
81ff62c271
PEAR now uses "use" instead of "include".
2000-03-09 21:57:14 +00:00
Stig Bakken
67cc918c3c
Avoid E_NOTICE errors in PEAR code.
2000-02-27 14:46:27 +00:00
Stig Bakken
3b783ef57b
register package
2000-02-26 16:03:50 +00:00
Stig Bakken
4d7150657c
Added simple HTTP utility class, currently with Date() and
...
negotiateLanguage().
2000-02-26 03:38:27 +00:00
Stig Bakken
1170876974
add a note about include return values
2000-02-25 21:18:01 +00:00
Andrei Zmievski
1e5749f47f
Added phpextdist script for making external extension packages.
2000-02-22 14:26:12 +00:00
Stig Bakken
8805f09d87
install DB_pgsql and DB_storage
2000-02-17 20:22:56 +00:00
Stig Bakken
64057e992b
* prepare/execute emulation moved into DB_common
...
* returning references everywhere in DB_mysql and DB_pgsql
* added a todo note to DB_pgsql
2000-02-17 20:21:01 +00:00
Stig Bakken
475b31f1e0
@Added DB/storage to PEAR
...
@Introduced DB warnings
Added DB/storage to PEAR.
Introduced DB warnings
Revert to using Javadoc-style comments.
DB_common now returns references in the appropriate places
2000-02-14 15:12:20 +00:00
Andrei Zmievski
fe93919b48
request_info.h is gone.
2000-02-11 19:02:07 +00:00
Andrei Zmievski
a4c68caedd
Avoid the 'unexpected end of file' error.
2000-02-10 22:19:02 +00:00
Andrei Zmievski
ab465c5857
Return by reference, where necessary.
2000-02-09 19:41:13 +00:00
Stig Bakken
338608ab31
Added three get modes: DB_GETMODE_ORDERED, DB_GETMODE_ASSOC and
...
DB_GETMODE_FLIPPED. Docs are within.
2000-02-09 19:04:17 +00:00
Stig Bakken
a04a28fbb5
* Started playing around with alternatives to javadoc.
...
* Fixed the "make install" rule so it doesn't temporarily break the
installed scripts.
* implemented prepare/execute emulation for MySQL including file-reference
parameters (only binmode/binfetchlen remains now)
* started fixing up the ODBC backend
2000-02-03 10:49:03 +00:00
Sascha Schumann
43ae2bffbb
Happy Y2K patch! Happy new year (or the new millennium, depending on whether
...
you start counting at 0 or 1).
2000-01-01 01:32:05 +00:00
Sascha Schumann
f2f8d38efa
Integration of -ng changes. Changes:
...
- added support for externally built modules,
- improved support for in-tree shared modules,
- fixed diversion bugs,
- configure displays some informative messages,
- faster static build
(libtool isn't used anymore for compiling non-PIC objects),
- dependencies comparable to automake's without requiring GNU make or GCC,
- working make clean for non-GNU makes.
1999-12-30 02:59:53 +00:00
Sascha Schumann
a2276107ab
Some cleanup
1999-12-21 22:58:04 +00:00
Stig Bakken
f30278b96b
- Documented classes, methods and constants in the source
...
- Defined DB_ERROR_NOSUCHTABLE and DB_ERROR_NOSUCHFIELD
- Renamed DB_common::capableOf to DB_common::provides
- Cleaned up the error code mapping
- Added simpleQuery method in DB_mysql
- Changed getXxx methods in DB_common to use simpleQuery
- Fixed bug in DB_common::getAssoc
1999-12-12 15:55:56 +00:00
Stig Bakken
208696f489
Added some more error defines (CANNOT_CREATE/DELETE/DROP).
...
Folded up the methods in DB.php.
Started adding documentation for DB_result methods.
Added doOne() doRow() and doAssoc() methods in DB_common.
Added numCols() to DB_mysql.
1999-12-08 13:49:09 +00:00
Andrei Zmievski
c2eae47a23
Oops.
1999-12-07 21:41:34 +00:00
Andrei Zmievski
44f6f66bd2
(DB::parseDSN) check for an extra / at the end purely to guard against
...
user error
1999-12-07 21:38:51 +00:00
Andrei Zmievski
9c89f731e8
(DB::parseDSN) Remove extraneous / at the end of the spec if no database
...
is specified.
1999-12-07 21:30:38 +00:00
Stig Bakken
ae1b7bf4b8
@Fix warnings compiling in maintainer mode. (Stig)
...
Fix warnings compiling in maintainer mode.
Install DB/common.php and DB/mysql.php on "make install".
# We still have a warning from http_config.h:97. Rasmus? :-)
1999-12-05 10:29:06 +00:00
Stig Bakken
2467dd6d05
@Fix some warnings when compiling in maintainer-mode (Stig)
...
@Made mysql and gd work as shared extensions again (Stig)
- Fixed some warnings in maintainer-mode.
- Made mysql and gd work as shared extensions again by defining
COMPILE_DL if PIC is defined.
# We need a better solution for building .so extensions than this
# PIC/COMPILE_DL hack!
1999-12-01 22:59:45 +00:00
Stig Bakken
9bba81c296
remove some debug output
1999-12-01 19:17:48 +00:00
Andrei Zmievski
8f39384d91
Modified to use preg_* functions.
1999-11-29 18:10:05 +00:00
Stig Bakken
a76c133df1
more PECL -> PEAR renaming
1999-11-29 15:18:01 +00:00
Stig Bakken
4ba143907b
- DB classes now inherit DB_common
...
- Added DB_ERROR_NODBSELECTED
- Added DB::connect($dsn[, $persistent] which creates a DB object and connects
$dsn is a "data source name" in a format specific to DB:
phptype(dbsyntax)://username:password@protocol+hostspec/database
Don't worry, such a dsn can be as short as "mysql"
- Added mysql support
1999-11-29 15:13:55 +00:00
Sascha Schumann
1d593a89da
Don't bail out, if PECL cannot be installed. PHP is often only an
...
intermediate step of the installation, so it is often not performed
by root.
1999-11-23 12:41:02 +00:00
Stig Bakken
541087d17a
@Introduced PECL - PHP Extension and Code Library (prounounced "picke")
...
Introduced PECL - PHP Extension and Code Library (prounounced "picke"), in
the "pecl" subdir. "make install" will now install the database abstraction
layer in PREFIX/lib/php.
I hereby dedicate this part of PHP to my daughter-of-yesterday Malin. :-)
1999-11-22 11:00:53 +00:00