Commit Graph

1625 Commits

Author SHA1 Message Date
Stig Bakken
fe2badf64e * added DB::isConnection
* phpdoc fixes
2002-04-16 21:50:48 +00:00
Stig Bakken
5d7b69f43e * started working on analyzeSourceCode and detectDependencies methods 2002-04-16 13:27:42 +00:00
Stig Bakken
e32362f792 * chdir back to original dir in PEAR_Packager::package
* only display "cvstag" hint if CVS/Root exists
2002-04-16 05:01:41 +00:00
Tomas V.V.Cox
b339986c12 Added standar header 2002-04-16 00:44:03 +00:00
Tomas V.V.Cox
7325f1a4f0 Added standar header 2002-04-16 00:38:21 +00:00
Tomas V.V.Cox
8a365fd8a2 Vim tags added plus some other minor text about license and author 2002-04-16 00:31:16 +00:00
Tomas V.V.Cox
299849fbf2 Be more clear when no packages are installed 2002-04-16 00:23:32 +00:00
Tomas V.V.Cox
26e59d106c Give the right error when wrong params given to package-info and
fix/add help some help messages
2002-04-16 00:22:55 +00:00
Markus Fischer
f95fbc4e60 - Do not try to draw a table if there are not elements.
# If no packages are installed, until now the output was:
#
# INSTALLED PACKAGES:
# ===================
# +
# +
#
# Now it is:
#
# INSTALLED PACKAGES:
# ===================
#
# Which is nicer IMHO. It think keeping the caption is ok.
2002-04-14 13:34:52 +00:00
Markus Fischer
509ef0237f - Also raise a different error message if we don't specify any package at all.
# We might consider giving the 'pear help uninstall' output to the user?
2002-04-13 06:00:36 +00:00
Markus Fischer
e060e90f0c - Return a different error message if no package file was given at all. 2002-04-13 05:52:54 +00:00
Markus Fischer
e96a657f8d - Properly format error message.
# Shouldn't this 'throw' an PEAR Error object ?
2002-04-13 05:33:35 +00:00
Stig Bakken
d1814a3c12 * cvstag command: tag slide option is -f, not -F 2002-04-13 00:23:19 +00:00
Stig Bakken
8c0edb86b0 * missing file role message could be mistaken for missing maintainer role 2002-04-13 00:20:40 +00:00
Stig Bakken
5d09a5e199 * add cookie authentication to PEAR_Remote (temporarily in addition to http auth) 2002-04-13 00:13:37 +00:00
Alexander Merz
a272bc81bb use DIRECTORY_SEPERATOR 2002-04-11 10:51:27 +00:00
Stig Bakken
e8ad66aa49 * add download command to description 2002-04-10 21:09:58 +00:00
Tomas V.V.Cox
ca0b7690c8 Implemented "pear download <pakage>" 2002-04-10 15:15:12 +00:00
Tomas V.V.Cox
dfba9e63ab Do not show the "tag it!" message when verbose=0
# Forgot to commit that before
2002-04-10 15:10:49 +00:00
Tomas V.V.Cox
a332c8c27b Added single display() 2002-04-10 15:09:36 +00:00
Tomas V.V.Cox
f833895afd Help for command "shell-test" 2002-04-10 12:40:06 +00:00
Tomas V.V.Cox
3788b31b0e Added "pear package -n" (only output the created package file name) 2002-04-10 12:23:31 +00:00
Stig Bakken
49445bbee0 * ignore dirs and libfiles in older releases (changelog) 2002-04-09 22:30:44 +00:00
Stig Bakken
7e7676f8fb * ignore files in older releases (changelog) 2002-04-09 21:48:19 +00:00
Stig Bakken
22673618f7 * drop the ondemand connect stuff for now 2002-04-09 18:57:28 +00:00
Stig Bakken
96213680ca * add preferred_state 2002-04-09 18:51:31 +00:00
Stig Bakken
28452d5dc0 * drop file replace= attribute 2002-04-09 18:50:54 +00:00
Stig Bakken
e91f94a259 * package-validate uses package.xml as default param 2002-04-09 17:15:17 +00:00
Stig Bakken
3c03ca3d7b * ext/xml/expat no longer has xmltok and xmlparse subdirs 2002-04-09 16:06:07 +00:00
Tomas V.V.Cox
4c125afc74 Make the dependencies check look for the correct registry file 2002-04-09 14:12:12 +00:00
Alexander Merz
eb85e073e5 Win95/98/Me doesn't support locking, please check patch on other systems 2002-04-09 14:00:05 +00:00
Tomas V.V.Cox
dc811f3041 Fix package-list not showing the right Install path 2002-04-09 13:49:47 +00:00
Tomas V.V.Cox
ebb85a3738 Fix a problem when list-installed is called in a new installation 2002-04-09 13:11:51 +00:00
James Cox
c602369f81 it's been changed back to php.exe 2002-04-09 09:59:17 +00:00
Alexander Merz
f6cc322d7d updated, requires PHP4.2 php-cgi 2002-04-09 09:28:04 +00:00
Stig Bakken
efa18af7e1 * show full cvstag command 2002-04-09 08:19:53 +00:00
Stig Bakken
8efdf7bc37 * get rid of CommandResponse stufff 2002-04-09 08:18:49 +00:00
Stig Bakken
2dc974d72d * drop file replace= attribute 2002-04-09 08:17:49 +00:00
Stig Bakken
f2efded1bc * remove PEAR/Uploader.php 2002-04-09 08:12:18 +00:00
Stig Bakken
6b8c7db275 * unused files 2002-04-09 08:11:22 +00:00
Stig Bakken
894cbdf3d2 * implemented role="script" and <replace> substitution during install 2002-04-09 08:10:12 +00:00
Stig Bakken
be65ac95cc * package definition for the base PEAR system 2002-04-09 00:03:44 +00:00
Stig Bakken
6c00a56766 HEADS UP, package.xml format change:
<file>foo.php</file> is now <file name="foo.php/>
Added tags for configure-like substitutions.
# the packager will handle both for a while
2002-04-09 00:03:18 +00:00
Richard Heyes
f006b2bbc3 * Added getStaticProperty() for static methods. 2002-04-08 21:03:41 +00:00
Yasuo Ohgaki
001d332a86 Make pgsql header available for PECL module(s) 2002-04-08 14:17:28 +00:00
Tomas V.V.Cox
2a1e0a53bb Continue the list of features for PEAR DB
Release version is 2.0 (apiVersion)
# Multiline entries inside the tags looks better in the web or in
# "pear package-info" if they aren't formatted to look better
# in the xml
2002-04-08 02:22:48 +00:00
Stig Bakken
79a150068a * append "?uncompress=yes" to the package download url if zlib extension
is not loaded
2002-04-07 21:09:41 +00:00
Stig Bakken
46dd841b28 * package xml file for DB 2002-04-07 21:02:54 +00:00
Tomas V.V.Cox
6ac6b78818 Added PEAR_Common::getUserRoles() and a suggestion 2002-04-07 20:47:04 +00:00
Stig Bakken
6303972256 * added "cvstag" command 2002-04-07 19:42:05 +00:00
Stig Bakken
8ec2ae71db * give PEAR_Packager::package an option to disable compression and make
plain .tar files
2002-04-07 17:07:49 +00:00
Stig Bakken
d6d8d78754 * remove empty fold 2002-04-07 16:51:17 +00:00
Stig Bakken
5bdc0eaafe * use the UI's displayFatalError method 2002-04-07 16:48:24 +00:00
Stig Bakken
6718d569bd * added displayError and displayFatalError methods 2002-04-07 16:47:36 +00:00
Stig Bakken
49b11adf7c * initialize _PEAR_Command_uiobject 2002-04-07 16:42:33 +00:00
Stig Bakken
255bbff361 * leave error reporting to the validator 2002-04-07 15:49:23 +00:00
Stig Bakken
065da3a0fa * more clear cvs tag hint 2002-04-07 15:07:26 +00:00
Tomas V.V.Cox
361cebe460 Just some help cleanup 2002-04-07 14:30:32 +00:00
Stig Bakken
73f4b5b2fa * typo 2002-04-07 13:22:21 +00:00
Stig Bakken
5179e9d0fa * rename package-verify command to package-validate 2002-04-07 12:40:51 +00:00
Stig Bakken
dc974a0299 * support for .tar files in PEAR_Installer
* new command: package-verify
* "package" command now sanity-checks the package information before
  making the tarball
* -Z option to the install/update commands for downloading non-compressed
  packages
2002-04-07 10:38:04 +00:00
Richard Heyes
d3c0d67060 * Added registerShutdownFunc() method 2002-04-06 17:01:14 +00:00
Tomas V.V.Cox
02bff6ce0e Fix bug in pushErrorHandling() (fail under very specific circumstances) 2002-04-06 15:12:04 +00:00
Sascha Schumann
8fae36cbd1 Improve the life of external extension maintainers by
not plaguing them with "./" in absolute paths.

Requested by: Andrei, Wez
2002-04-06 13:42:40 +00:00
Stig Bakken
de1f6319ec * forgot htmlspecialchars in release notes 2002-04-06 00:58:22 +00:00
Wez Furlong
5916b203fe add mbstring headers to those for pear/pecl extensions 2002-04-05 00:16:09 +00:00
Stig Bakken
d4dfead250 * Added "-s" (soft update) option to install/upgrade. Will make installs
fail silently.
2002-04-02 09:21:48 +00:00
Stig Bakken
f8fc50b922 * add Frontend support to PEAR_Common::log() 2002-04-02 09:21:08 +00:00
Stig Bakken
dfa3b671f7 * Implemented "shell-test" command for writing shell scripts that check
whether a package is installed.  Example of use:

    if ! pear shell-test Net_Socket; then
        echo "You don't have the Net_Socket package installed!" >&2
        exit 1
    fi
2002-04-02 09:20:28 +00:00
Stig Bakken
9de06e3662 * just renaming some comments 2002-04-02 09:18:07 +00:00
Stig Bakken
7ddaefba34 * add type property telling what type of frontend this class implements 2002-04-02 09:15:51 +00:00
Stig Bakken
812d9bf3c4 * remove "exit" at the end, it causes a "false" exit code always 2002-04-02 09:10:23 +00:00
Stig Bakken
990d19aefe * comment out the php files that are not necessary for the installer
# the rest will show up as packages in /pear shortly
2002-04-02 09:09:41 +00:00
Tomas V.V.Cox
750ca4295e typo 2002-04-01 19:17:59 +00:00
Tomas V.V.Cox
b57e0609ad Added layer checks and reorganize a little the code 2002-04-01 19:16:01 +00:00
Tomas V.V.Cox
49dacbee8c - Define the PEAR constants when they are not set (be nice
with the "--wihout-pear" people who finally regrets)
- Added method getLayers()
2002-04-01 19:13:37 +00:00
Tomas V.V.Cox
6ec8fbc30e - Make "config-set" actually store the values
- Help and error messages enhance
2002-04-01 18:19:45 +00:00
Tomas V.V.Cox
827334cd2f - Added "nodeps" option to install/upgrade/uninstall
(pear install -n package.tgz)
- Finish to document the install commands
2002-04-01 17:25:42 +00:00
Tomas V.V.Cox
def4a8485d - Set some php.ini values needed by the installer
- Removed unused present_array() and heading() functions
2002-04-01 16:49:19 +00:00
Tomas V.V.Cox
7b68037886 People reported problems with flock(LOCK_SH) and fopen('w') 2002-04-01 16:10:39 +00:00
Tomas V.V.Cox
6e8268e4a4 added help 2002-04-01 15:23:46 +00:00
Tomas V.V.Cox
1924492aed Adaptation for the new help system 2002-04-01 14:35:08 +00:00
Tomas V.V.Cox
edab1197f3 Go with the help system 2002-04-01 14:32:40 +00:00
Stig Bakken
0c7f16bd96 * typo 2002-04-01 14:15:30 +00:00
Tomas V.V.Cox
460eb1103c E_ALL fix 2002-03-31 19:04:53 +00:00
Tomas V.V.Cox
ed450a6c4e if (!function_exists('md5_file')) { ... 2002-03-31 19:04:26 +00:00
Stig Bakken
561ac3d54e * E_ALL fix 2002-03-31 03:16:02 +00:00
Stig Bakken
f1c803a41c * avoid object copying 2002-03-31 01:51:08 +00:00
Stig Bakken
5e13ee1428 * oops, config object was copied
* call parameters were not passed on to xmlrpc_encode_request()
2002-03-31 01:45:36 +00:00
Stig Bakken
c5d35962d2 * install PEAR/Command/Remote.php 2002-03-31 00:32:00 +00:00
Stig Bakken
69df28337b * implemented "pear list-upgrades", which will show you what releases
are available on the server (shows newer releases with the same state)
2002-03-29 02:41:28 +00:00
Stig Bakken
45878bff77 * always require PEAR/Common.php 2002-03-29 02:39:33 +00:00
Stig Bakken
f6e4eea39a * allow "any" as a preferred_state value 2002-03-29 02:38:07 +00:00
Stig Bakken
99cfda3756 * pass on xmlrpc faults as pear errors 2002-03-29 02:17:55 +00:00
Stig Bakken
adc0b5741e * fix tempfile cleanup 2002-03-29 00:05:55 +00:00
Stig Bakken
84652eeb52 * per-command fold marks 2002-03-28 23:50:45 +00:00
Stig Bakken
62bff20267 * regenerate package.xml with file checksums 2002-03-28 23:49:34 +00:00
Stig Bakken
425cb1b04e * default dep rel attribute to 'has' 2002-03-28 23:45:16 +00:00
Stig Bakken
a50c40cc24 * accept optional tmpdir arg in mkTempDir
* handle changelog releases without filelist
2002-03-28 23:44:31 +00:00
Stig Bakken
f5e745e848 * added preferred_state config keyword 2002-03-28 14:27:02 +00:00
Stig Bakken
78c020a3bb * added phpdoc
* now ready to support multiple versions of the package format
* don't parse dependencies in changelog
* fix libfile parsing
* default maintainer roles to 'lead'
* added infoFromString() method
* added xmlFromInfo() method to regenerate package.xml files
2002-03-28 14:07:33 +00:00
Stig Bakken
66d8ab4998 * added "platform" and "md5sum" attributes to <file> 2002-03-28 12:09:59 +00:00
Tomas V.V.Cox
b5f477ba00 E_ALL fixes 2002-03-26 16:31:13 +00:00
Tomas V.V.Cox
0e20c6e383 _lock() now returns PEAR Error or true for consistency 2002-03-26 16:29:53 +00:00
Stig Bakken
365505daed * move logic to _assertStateDir 2002-03-24 01:52:38 +00:00
Tomas V.V.Cox
b217ed9711 The System class was modified to always return true or false instead
of PEAR Errors. Changed then assertStateDir() to check for false.
2002-03-23 18:36:52 +00:00
Tomas V.V.Cox
757ec9ef38 Show maintainers name in package-info and show more human friendly
column table names
2002-03-23 17:55:51 +00:00
Tomas V.V.Cox
1cf543c34a Yet another break; forgotten 2002-03-23 17:46:51 +00:00
Tomas V.V.Cox
fdce319634 Oops, forgot the break; 2002-03-23 17:44:48 +00:00
Tomas V.V.Cox
8ea9125840 - Show the real dir where files would be installed (using role & config)
- Introduce column wrapping
2002-03-23 17:27:39 +00:00
Tomas V.V.Cox
f40007a1ef - Use getenv('TERM') instead of $_ENV (empty for me in 4.1.1)
- Added 'linux' as bold capable list of term types
- Pass the col by reference for making the wrap take effect in tableRow
2002-03-23 16:50:43 +00:00
Tomas V.V.Cox
dc17bcc6ab fix parse error 2002-03-23 15:56:14 +00:00
Stig Bakken
3402d342a6 * added package-list and package-info commands (for .tgz files) 2002-03-23 10:21:29 +00:00
Stig Bakken
9fae289542 * use switch/case for what it's worth :-) 2002-03-23 10:20:41 +00:00
Stig Bakken
b5604d18dc * _lock() calls _assertStateDir() 2002-03-23 10:18:32 +00:00
Stig Bakken
ed16ccb275 * support having a toplevel package.xml in tgz files 2002-03-23 10:17:39 +00:00
Stig Bakken
e965aba2aa * wordwrapping and multiline table cell support 2002-03-23 10:15:36 +00:00
James Cox
7d5e529b55 "reverting" to 1.39 as per Tomas Cox's wishes. 2002-03-23 05:29:09 +00:00
Stig Bakken
5e0f34ea55 * don't start table cells with a space in borderless tables 2002-03-22 12:47:13 +00:00
Stig Bakken
1b09d1f19c * typo fix 2002-03-22 12:46:18 +00:00
Stig Bakken
75f15860b1 * use PEAR_Frontend tables in config-show command 2002-03-22 12:45:41 +00:00
Stig Bakken
a57a5d7eda * now using PEAR_Frontend tables 2002-03-22 11:59:52 +00:00
Stig Bakken
fd62c434e5 * ncurses note 2002-03-22 11:58:22 +00:00
Stig Bakken
5cc2e77ca8 * table support working
* added bold support for xterm/vt220/vt100 terminals
2002-03-22 11:57:45 +00:00
Stig Bakken
8ce0ceb372 * setUIType -> setFrontendType 2002-03-22 11:57:09 +00:00
Stig Bakken
5d11204de0 * rename class/methods 2002-03-22 11:09:58 +00:00
Stig Bakken
9631885246 * temporarily added: nuke old files/dirs 2002-03-22 10:28:27 +00:00
Stig Bakken
73d26803f0 * one last CommandUI -> Frontend change 2002-03-22 10:05:40 +00:00
Stig Bakken
60035fb949 * rename PEAR_CommandUI* to PEAR_Frontend*
* rename PEAR/Command/Login.php to PEAR/Command/Auth.php
* replace PEAR/Command/Info.php with PEAR/Command/Registry.php (will contain
  more commands related to the local registry)
* started working on Frontend table output
2002-03-22 09:22:28 +00:00
Stig Bakken
e41dca2995 * No point in creating the lock file directory if it does not exist (so many
other things would fail anyway).  Throw an error instead.
2002-03-22 08:32:40 +00:00
Tomas V.V.Cox
9772468d37 - Make the rellocation of packages work as expected if the target
dir doesn't exist
- The "install -f" now replaces the info in the registry
2002-03-21 22:29:03 +00:00
Tomas V.V.Cox
41a8a27676 - Added command level options
- Fix error handling for Getopt (it doesn't use raiseError)
2002-03-21 20:55:41 +00:00
Tomas V.V.Cox
a7936eea78 - Implement command level options
- Removed call pass by reference
- Readd $options to command::run() params
2002-03-21 20:52:26 +00:00
Tomas V.V.Cox
a974fbd9ae fix a problem handling nested directories 2002-03-21 19:12:49 +00:00
Tomas V.V.Cox
9bee3510ea readd the "list" command 2002-03-21 11:33:54 +00:00
Tomas V.V.Cox
b14c8152da Adapt this commands to the new config store mechanism and command params 2002-03-21 11:16:15 +00:00
Tomas V.V.Cox
139f69ca32 Pass config to command factory and pass the correct command params 2002-03-21 11:13:02 +00:00
Tomas V.V.Cox
47c71bcaa1 - The config object is stored by the factory method
- Make install/unistall/package work again (didn't work for me)
2002-03-21 11:10:17 +00:00
Tomas V.V.Cox
67b971aece Clean up unused stuff 2002-03-21 11:04:56 +00:00
foobar
4a0291d238 - Make it possible to build ext/openssl as shared extension 2002-03-20 02:07:11 +00:00
Stig Bakken
c19ddade2c * install PEAR_Command_Package 2002-03-19 19:59:05 +00:00
Stig Bakken
de381091ba * re-add "package" command 2002-03-19 19:55:30 +00:00
Stig Bakken
fdf8cafd11 * "pear login" finally works 2002-03-19 19:31:02 +00:00
Stig Bakken
97beb58d43 * fix http auth bug 2002-03-19 19:30:06 +00:00
Stig Bakken
529ec7cda4 * add optional default parameter to userDialog method 2002-03-19 19:28:48 +00:00
Stig Bakken
623905dfbf * pear-get gone 2002-03-19 01:13:20 +00:00
Stig Bakken
41c1c08495 * get rid of this hack 2002-03-18 18:01:14 +00:00
Stig Bakken
a036fe5b72 * Refactoring of "pear" command internals. Highlights:
- user interface abstraction, making a Gtk installer should only be
   a matter of implementing PEAR_CommandUI_Gtk plus a "pear-gtk" executable
 - separated code into command classes, able to specify one or more
   commands
 - no more "pear-get" :-)
* fixed use of PEAR_Config::singleton to avoid object copying
2002-03-18 17:39:52 +00:00
Stig Bakken
c55f61c9aa * added optional layer parameter to get() method
* added isDefinedLayer() method
2002-03-16 23:48:23 +00:00
Sascha Schumann
2ea99fe17a a bit of refactoring and making always_shared a nop in every day life 2002-03-13 12:30:49 +00:00
Sascha Schumann
e10ca10084 Provide context-specific functions which yield the directories
of extensions (PHP 4 configure vs. self-contained module)
2002-03-13 09:20:49 +00:00
Tomas V.V.Cox
7c77b1a71e No more lines on this test 2002-03-13 01:46:10 +00:00
Tomas V.V.Cox
12b0eae9e2 phpdoc update 2002-03-13 01:39:51 +00:00
Tomas V.V.Cox
409a631bed Fix error handling selection when both class and global are set 2002-03-13 01:17:47 +00:00
Stig Bakken
32d3a0afd7 * added file locking
* added file name to package map
2002-03-11 15:13:19 +00:00
Sascha Schumann
9c3b0c752e Invoke pear-related targets conditionally and
rename install-data-local target to install-pear.
Also remove PEAR_DIR, because it is unused.
2002-03-11 13:17:44 +00:00
Sander Roobol
58a52f93bc Fixed many tests, mostly incorrect paths. 2002-03-08 19:16:19 +00:00
Sascha Schumann
9d9d39a0de Please welcome the new build system.
If you encounter any problems, please make sure to email sas@php.net
directly.

An introduction can be found on

http://schumann.cx/buildv5.txt
2002-03-07 14:20:02 +00:00
Stig Bakken
fda570aadc * PEAR_Config test complete 2002-03-05 20:39:38 +00:00
Stig Bakken
80f1212660 * update PEAR_Config test 2002-03-05 17:39:53 +00:00
Stig Bakken
856e382c8b * fix singleton() so it actually works
* insert file format version in written files
* add getSetValues() method for listing the valid values for a set value
2002-03-05 17:39:29 +00:00
Stig Bakken
22aac3652e * fix PEAR::setErrorHandling() settings so they apply when using raiseError() 2002-03-05 14:43:02 +00:00
Stig Bakken
2b9f535589 * fixed a couple of bugs in PEAR_Config revealed by test 2002-03-05 00:41:36 +00:00
Stig Bakken
8188c50c28 PEAR_Config rewrite:
* Now supports (in theory) an arbitrary number of
  config "layers" (different sets of configuration data with a defined
  priority).
* Specify the type of config values so different frontends can make
  user-friendly configuration interfaces.  Valid types are currently
  "string", "integer", "file", "directory", "set" and "password".  The
  set type lets you specify a limited set of values that the config
  values must be selected from.  Password values are stored
  base64-encoded.
* Added phpdoc comments and some docs for config values.
* Added singleton method.
# configuration files still contain serialized data
2002-03-04 10:02:45 +00:00
Stig Bakken
8d7d6ce2c3 * more cli test fixes 2002-03-02 03:11:02 +00:00
Stig Bakken
4c73289238 * updated tests to work with cli 2002-03-02 03:07:48 +00:00
Stig Bakken
b8aa2339d3 fix test 2002-03-02 02:47:48 +00:00
Stig Bakken
8e0e7cd4ba * code for install/uninstall/upgrade complete, not yet tested
# uses a new, un-committed version of PEAR_Config
2002-03-01 09:43:18 +00:00
Stig Bakken
a146a16475 * output a reminder to set CVS tags after packaging 2002-03-01 09:16:49 +00:00
Sebastian Bergmann
90613d2282 Maintain headers. 2002-02-28 08:29:35 +00:00
Stig Bakken
4a2e3c4a20 * fix broken dtd
# Tomas, there is no way to do what you want in the DTD without switching
# from XML to SGML.  Sorry :-)
2002-02-24 10:45:28 +00:00
Tomas V.V.Cox
3e4235b29a DTD corrections (make it require minimal data for installer) 2002-02-23 21:21:18 +00:00
Stig Bakken
3ea5f3343b * started implementing new "cross-environment" command API
# work in progress, not tested at all yet!
2002-02-23 15:32:36 +00:00
Tomas V.V.Cox
2833e8467c Point readers to pear web 2002-02-23 13:47:16 +00:00
Tomas V.V.Cox
40c5f9afbc outdated TODO not needed for the moment 2002-02-23 13:44:52 +00:00
Vincent Blavet
508b9eff57 * Packager : Changing the order of the files in the package archive file.
The package.xml file is now at the 'root' of the archive, the files tree are under a 'packagename'-'packageversion' folder
* Installer : installing the knew archive format AND supporting the existing format
2002-02-22 21:57:04 +00:00
Vincent Blavet
04db776e71 Config variables must be set between "" while using pear.bat windows script 2002-02-20 22:39:16 +00:00
Vincent Blavet
16c5edd86f * Correct bug while using windows dir separator. It is now supported 2002-02-20 22:15:28 +00:00
Martin Jansen
52ba15e99d ='typo' 2002-02-18 10:27:36 +00:00
Martin Jansen
12ebcb3a21 * Fix for bug #15500 2002-02-17 15:32:53 +00:00
Stig Bakken
2eef6d482f * allow <license> in both <package> and <release>
* added <changelog> element
* added "data" role for files
* allow nested <dir> elements
2002-02-17 14:43:16 +00:00
Jon Parise
d8bfdb4f91 Image/Remote.php and Mail/mime.php have moved to the pear/ repository. 2002-02-17 04:31:30 +00:00
Vincent Blavet
f6f6d88ad3 * Synchronize pearwin script with pearcmd-xxx.php commands
* Still work to do
2002-02-13 21:27:54 +00:00
Vincent Blavet
dac7d61612 * user system/user config rather than default value 2002-02-13 21:26:39 +00:00
Vincent Blavet
e5a24250d2 - Adding support for remote-list command (with XML-RPC installed)
- Start support of show-config (still work to do ...)
2002-02-13 08:50:07 +00:00
Stig Bakken
6176cf5216 * "pear-get install Auth" works now 2002-02-13 01:40:18 +00:00
Stig Bakken
773ee5d7e7 * don't use ext/overload yet 2002-02-13 01:09:55 +00:00
Stig Bakken
042b883899 * print package name 2002-02-13 01:07:30 +00:00
Jan Lehnardt
9869854d47 - added support for different error messages for the following cases:
-
 - if a user with unsufficient permissions trys to select a database
 - PEAR::DB previously threw a "no database selected" error  instead
 - of a more proper "insufficient permissions". This is fixed now.
 -
 - if a user selects a nonexistant database PEAR::DB threw a
 - "no database selected" error instead of "no such database".
 - This is fixed as well.
 -
 - I added two new constants to DB.php and a simple case construct to
 - DB/mysql.php which can be easily extended to achive the above. I
 - hope this is ok.
 - Thanks to Till Gerken for mentioning this.
2002-02-12 18:29:27 +00:00
Martin Jansen
5aa0158452 * Fix bug #15423. 2002-02-11 13:07:42 +00:00
Tomas V.V.Cox
a5c0adc9fe Now System will return false on fail 2002-02-10 17:23:04 +00:00
Tomas V.V.Cox
0dd3010501 test suite for the System class 2002-02-10 17:12:43 +00:00
Tomas V.V.Cox
d966015b52 - Now error will be triggered with trigger_error(). When a command
fails the function will return false
- In-line documentation update
2002-02-10 17:03:22 +00:00
Martin Jansen
7270b4223d * Better error handling. 2002-02-07 20:50:08 +00:00
Martin Jansen
5e9b1634c6 * Partially fix bug #15423. 2002-02-07 11:15:54 +00:00
Tomas V.V.Cox
b91c077710 added 'System::type()' (show the full path of a command)
Copied almost verbatim from Stig's PEAR_Dependency::checkProgram()
2002-02-06 08:32:00 +00:00
Stig Bakken
ad882c44c9 * add some missing attributes 2002-02-02 00:06:44 +00:00
Tomas V.V.Cox
22aee18f0b Fix remote security risk, pointed out by Wolfram Kriesing 2002-02-01 16:36:32 +00:00
Tomas V.V.Cox
1cb07caf63 Added support for passing special backend params in DSN. Ex:
ibase://user:pass@localhost/db?role=foo&dialect=bar
2002-02-01 15:03:17 +00:00
Martin Jansen
2077f62d08 * Fix bug #15313 2002-01-31 13:41:04 +00:00
Stig Bakken
c049dda279 * lowercase tags and attributes 2002-01-31 08:19:34 +00:00
Stig Bakken
0943dc82dd * remove broken rule for rebuilding Makefile 2002-01-31 08:19:09 +00:00
Stig Bakken
c1048eac9f * don't make command libs executable 2002-01-30 12:21:25 +00:00
Stig Bakken
615f110d4e * modularize "pear" and "pear-get" commands somewhat. checking options
etc. is done for both in pearcmd-common.php.
2002-01-30 12:20:12 +00:00
Stig Bakken
a33fd65b12 * silence warning 2002-01-30 12:18:10 +00:00
Stig Bakken
f4425aece6 * bring DTD up to date 2002-01-30 09:23:34 +00:00
Vincent Blavet
3d95bf927c * Remove the use of a temp dir
* Tar archive is now doing the same work with less overhead
2002-01-26 12:36:30 +00:00
Tomas V.V.Cox
7eebc64347 correct url 2002-01-24 15:02:05 +00:00
Vincent Blavet
06c98b477b * Call the PEAR_Registry constructor with the optional parameter 2002-01-24 08:24:24 +00:00
Vincent Blavet
1696a2c4e2 * Adding the ability to set the PEAR_INSTALL_DIR while creating the Registry object (in the same way as Installer.php) 2002-01-24 08:22:46 +00:00
Vincent Blavet
f2121e4bcf * Adding support of extraction of remote archive http://www/archive.tgz
* Correct bug while using Windows root path c:\xxx\yyy in extract fct
2002-01-24 08:08:54 +00:00
Vincent Blavet
2c91e54d5a * Add uninstall command
* Add list-installed command
2002-01-23 19:09:54 +00:00
Tomas V.V.Cox
62c9234520 Return false when the directory can not be created in mkDir() 2002-01-23 18:53:08 +00:00
Jon Parise
6aa6a6ab87 Adding Archive/Tar.php to php4/pear/. This is needed in order for the
phptar script (php4/pear/scripts/phptar) to be useful, so it makes sense
to make Archive/Tar.php a standard component.
2002-01-21 18:25:04 +00:00
Sebastian Bergmann
23f8fe7d47 Move Cache to /pear. 2002-01-20 16:06:08 +00:00
Sebastian Bergmann
9904415f88 Move Payment_Verisign to /pear. 2002-01-20 15:55:04 +00:00
Sebastian Bergmann
8019a1cfe2 Move Benchmark, Math, Numbers to /pear. Remove Log, it was already in /pear. 2002-01-20 15:44:32 +00:00
Tomas V.V.Cox
87530cf819 Stores limit_from and limit_count as DB_result proporties instead
of DB_common. Fixs bug when doing queries inside limitQuery results.
2002-01-19 07:46:23 +00:00
Tomas V.V.Cox
4cfbd67b08 New DSN "protcocol(protocol_opts)" format support:
phptype://user:pass@protocol(proto_opts)/database
ex:
pgsql://user@unix()/pear
mysql://user@unix(/path/to/socket)/pear
pgsql://user:pass@word@tcp(somehost:7777)/pear
2002-01-13 18:24:56 +00:00
Tomas V.V.Cox
e5898af98c - Added HTTP::head($url) which sends a "HEAD" HTTP command to a server
and returns the headers as an associative array
- Call-time pass-by-reference fixes
2002-01-11 01:51:24 +00:00
Tomas V.V.Cox
3a878be7a1 submit a test that will fail due to php bug #14744 2002-01-11 00:04:55 +00:00
Tomas V.V.Cox
ed01060897 ws 2002-01-07 00:11:11 +00:00
Tomas V.V.Cox
ce82f6261a use the new Console_Getopt::readPHPArgv() function to read args 2002-01-06 20:19:41 +00:00
Tomas V.V.Cox
db508778ad Added readPHPArgv() function that will safely read the $argv PHP array
across different PHP configurations. Will take care on register_globals
and register_argc_argv ini directives and the new $_SERVER vars
2002-01-06 20:17:00 +00:00
Tomas V.V.Cox
7f98b04296 Added check for $argv avaible
(thanks Michael Härtl <mhaertl@pressline.de>)
2002-01-05 17:20:08 +00:00
Stig Bakken
54ad4c578c * PEAR.php line number changes again 2002-01-02 17:19:25 +00:00
Stig Bakken
6ca17a6e35 * registry files renamed from .inf to .reg, update test 2002-01-02 17:18:52 +00:00
Stig Bakken
7ab86afd32 * support "pear-get install XML_RPC" 2002-01-02 17:12:26 +00:00
Stig Bakken
4fc3baefd2 * start splitting "pear" command into "pear" and "pear-get" 2002-01-02 17:11:34 +00:00
Stig Bakken
d379d735fb * use new overloading API properly 2002-01-02 17:09:59 +00:00
Stig Bakken
9311e05119 * install PEAR/Dependency.php 2001-12-29 02:12:02 +00:00
Tomas V.V.Cox
6b0ac4420c - Rewrote infoFromTgzFile() (Stig, no more "pedantic" :-)
- Added <description> tag for package.xml
- Temporal fix arround php bug #14744 and temp files cleaning
2001-12-28 19:27:08 +00:00
Stig Bakken
b22a776018 * added <description> element in <package> 2001-12-28 02:09:27 +00:00
Tomas V.V.Cox
bc7bc41e6f switch to use the xml end tag function for correct handling
of multiline tag contents
2001-12-27 11:10:56 +00:00
Tomas V.V.Cox
65a205a7db added default target for installing documentation 2001-12-26 04:00:30 +00:00
Tomas V.V.Cox
09dba8cf28 reverted the last change for now 2001-12-26 03:58:44 +00:00
Tomas V.V.Cox
a8f7a57e97 - Install files marked as "role=doc" in a central PEAR doc dir
(defaults to PHP_DATADIR/pear/doc/Package_name/)
- Store a new property of each installed file ['installed_as'] for
  easy uninstall
2001-12-26 03:57:47 +00:00
Stig Bakken
bd1a88fab6 * use "windir" env.var on Windows too 2001-12-26 01:50:08 +00:00
Stig Bakken
6b8397b9f7 * added System::tmpdir() method (now uses SystemRoot env.var on Windows) 2001-12-26 01:23:04 +00:00
Tomas V.V.Cox
bda81affd2 added the <license> tag under <release> for the package.xml file 2001-12-23 21:32:09 +00:00
Stig Bakken
9c3b983a35 * add "pedantic" mode in infoFromTgzFile and skip some checks if not
pedantic
2001-12-22 04:42:12 +00:00
Yasuo Ohgaki
d4aa7982cf Install session module haeder 2001-12-21 22:50:47 +00:00
Martin Jansen
6c118a143a * Change $Version$ to $Revision$. 2001-12-18 17:06:28 +00:00
Martin Jansen
4b389679c4 * Convert tabs to spaces. 2001-12-18 14:13:43 +00:00
Tomas V.V.Cox
8e18d716f8 that makes more sense 2001-12-18 08:52:48 +00:00
Tomas V.V.Cox
be45657eea quick fix for the "pear info" command 2001-12-18 08:48:28 +00:00
Tomas V.V.Cox
1a451a98ba Added dependencies check support for Installer 2001-12-17 21:11:50 +00:00
Tomas V.V.Cox
2816eafc06 ensure correct package names and versions in the xml parser 2001-12-17 21:10:11 +00:00
Tomas V.V.Cox
ed2bff2a7f - Added callCheckMethod() for making easy the integration with
the PEAR_installer class
- Reverted the logic of the returned value of the check methods.
  They will return false on no error or the error string on error
- Added signOperator() to output the representation of the operator
  with signs instead of letters ('ge' -> '>=')
- Other minor changes
2001-12-17 21:08:58 +00:00
Tomas V.V.Cox
47419f899f call PEAR::raiseError() instead of $this->raiseError() in factory() 2001-12-17 15:33:34 +00:00
Ulf Wendel
8a4b6a79b7 - included PEAR.php
- flush(): consistent cache group defaults
2001-12-17 11:23:33 +00:00
Tomas V.V.Cox
a919c54de1 added support for <deps> and <dep> tags 2001-12-16 16:21:35 +00:00
Tomas V.V.Cox
e2a5cf3fcb use the System class for mkDirHier() and mkTempDir() 2001-12-16 15:14:00 +00:00
Tomas V.V.Cox
a74e56fe05 improved phpdoc of mkTemp() 2001-12-16 01:36:49 +00:00
Tomas V.V.Cox
aadc3fea32 Added System::mktemp() (Creates temporal files or directories) 2001-12-16 01:30:31 +00:00
Martin Jansen
64a857c52e * Destructors seem to work like a charm. -> No need to keep this line. 2001-12-15 15:01:35 +00:00
Martin Jansen
dbe0db638e * Add links to the new documentation. 2001-12-15 14:55:02 +00:00
Sterling Hughes
a98c093d44 be rfc compliant...
RFC 822 *only* supports four digits for the year in order to have a compliant
header.
RFC 850 supports two digits for the year (y2k_incompliant :) so use that when
y2k_compliance is turned off.

In either case, both of these formats require that GMT be appended to the header,
so we do this as well
2001-12-14 11:43:20 +00:00
Stig Bakken
7ea3d57462 * update to new overload api 2001-12-14 07:47:41 +00:00
Alexander Merz
4024d1f938 fix phpdoc 2001-12-13 23:07:16 +00:00
Andrei Zmievski
6bd64164d5 Always output config.nice for standalone extensions. (Really helps with
PHP-GTK).
2001-12-12 20:26:13 +00:00
Stig Bakken
aef2b692c1 * implemented "upgrade"
* report install/uninstall errors
2001-12-12 01:35:03 +00:00
Stig Bakken
035cf39d34 * install PEAR/Autoloader.php 2001-12-12 01:32:01 +00:00
Stig Bakken
4adfb80edc * implemented upgrade 2001-12-12 01:30:56 +00:00
Stig Bakken
491a2f5219 * PEAR_Registry::updatePackage now takes an optional 2nd arg for
replacing package info instead of merging
2001-12-12 01:29:27 +00:00
Stig Bakken
64349569de * make do without overload function 2001-12-12 00:10:47 +00:00
Tomas V.V.Cox
18f2ffeead fixed bug #14414 2001-12-11 20:52:58 +00:00
Sebastian Bergmann
38933514e1 Update headers. 2001-12-11 15:32:16 +00:00
Stig Bakken
180cce6f63 * fixed the sub-command option parsing
* added -r option to install/uninstall (registers package without
  installing any files, for use by rpm and the like)
2001-12-11 08:39:56 +00:00
Stig Bakken
131acf55f7 * added "register_only" option for install/uninstall 2001-12-11 08:39:01 +00:00
Stig Bakken
79f5dcf7d6 * now using ext/overload
# how to use:
#
# $remote = new PEAR_Remote;
# $remote->package_listAll();
# $remote->user_activate("johndoe");
#
# (when using overloading, "_" is replaced with "." before doing
#  the xmlrpc call)
2001-12-10 17:04:56 +00:00
Stig Bakken
b26e4a97c9 * PEAR_Registry::packageInfo now takes a second arg for returning a single
attribute
2001-12-10 17:01:32 +00:00
Stig Bakken
936923a3b6 * added fold marks, moved around some code and silenced some Archive_Tar
notices
2001-12-10 17:00:32 +00:00
Stig Bakken
2c96b5856f * renamed check methods to checkXxx
* completed the extension check method
* added checks for os, php version, programs and sapi backend
2001-12-10 16:59:17 +00:00
Stig Bakken
cd9f1f828e * fix phpdoc comments 2001-12-10 16:40:30 +00:00
Stig Bakken
883e3395f0 * stop parsing arguments when encoutering the first non-option arg 2001-12-10 16:38:44 +00:00
Stig Bakken
b11d1eb440 * initial commit of PEAR method autoloader 2001-12-10 01:50:11 +00:00
Tomas V.V.Cox
4bffed7769 Rename Dependencie.php to Dependency.php 2001-12-02 16:29:37 +00:00
Tomas V.V.Cox
3898513fbd Class for checking dependencies 2001-12-02 00:44:02 +00:00
Tomas V.V.Cox
f4299a90e2 check for version for not building broken packages (thanks Markus) 2001-12-01 17:55:47 +00:00
Tomas V.V.Cox
15f0f8ae23 implemented "uninstall" command 2001-11-15 01:24:35 +00:00
Christian Stocker
57d908ea1f adding PEAR/Registry.php 2001-11-14 09:55:38 +00:00
Christian Stocker
fde1575ba2 checking if package.xml.gz exists, before checking if it's writeable 2001-11-14 09:22:00 +00:00
Stig Bakken
f705826052 * command name changes 2001-11-13 01:07:36 +00:00
Stig Bakken
e6f95ee99b * rename files to .reg (not .inf) 2001-11-13 01:06:48 +00:00
Stig Bakken
79f0345166 * error message cleanup
* store registry object as property
2001-11-13 01:05:46 +00:00
Martin Jansen
62f57095a0 * shame on me ... 2001-11-12 10:52:41 +00:00
Martin Jansen
98bda8de71 * typo 2001-11-12 10:51:42 +00:00
Jon Parise
1c7f015c4d Provide the full URL to pear.php.net. 2001-11-12 03:04:06 +00:00
Markus Fischer
3a1b1142fe Add missing loop variable $i.
Suppress more warnings when using the option separator '--'.
2001-11-11 04:09:08 +00:00
Markus Fischer
d672226d6f Suppress warning on long-options without an additional argument. 2001-11-11 03:59:22 +00:00
Martin Jansen
13fb78bab1 * some minor improvements 2001-11-10 10:37:24 +00:00
Tomas V.V.Cox
878fb495fe - By default DB_FETCHMODE_OBJECT will do a cast to object from the row
array (twice fast than with DB_Row)
- API Doc updates/fixs
2001-11-08 13:53:44 +00:00
Stig Bakken
61cad20c12 * store registry data in PEAR_INSTALL_DIR/.registry instead of /var/something 2001-11-07 10:43:04 +00:00
Stig Bakken
b1976de01b * fix "list" command 2001-11-07 09:25:39 +00:00
Stig Bakken
81b5aabb33 typo 2001-11-07 09:24:55 +00:00
Chuck Hagenbuch
352e52716a fix the singleton and factory methods for
a). php 4.0.6 (where include_once might return false)
b). to use references and not copy so many objects
2001-11-06 21:46:41 +00:00
Tomas V.V.Cox
5695709fb7 E_ALL fixes 2001-11-06 01:05:28 +00:00
Tomas V.V.Cox
16f8af514f E_ALL fixes 2001-11-06 00:22:18 +00:00
Stig Bakken
db44b1086c * expectError() now accepts "*" as a catch-all
* updated tests
2001-11-04 09:07:17 +00:00
Christian Stocker
288871505b typo 2001-11-02 17:57:17 +00:00
Tomas V.V.Cox
3a0e43cb54 use feautres property instead of options 2001-11-02 00:38:23 +00:00
Tomas V.V.Cox
fa15d6069c - Added row limit support for fetchInto and fetchRow
- Added getRowCounter method for DB_result to get the row number
  you are fetching in limited queries
2001-11-01 15:14:17 +00:00
Stig Bakken
8a7f7d5cae * pearweb xmlrpc layer now handles PEAR errors 2001-10-31 06:21:11 +00:00
Stig Bakken
b0a803d127 * update tests 2001-10-31 05:52:41 +00:00
Stig Bakken
2c05c7e0ac * removed error_prepend and error_append properties 2001-10-31 05:48:16 +00:00
Stig Bakken
b5dc4f7ce0 renamed "debuginfo" property declaration to "userinfo" 2001-10-31 05:44:19 +00:00
Stig Bakken
f0df3f5f82 * added "pear info" and "pear show-config" commands
* "pear install" now using the package registry
2001-10-31 05:39:11 +00:00
Stig Bakken
3a97065f87 * disable case-folding in the xml parser (for consistency now that the
DTD is all lowercase)
2001-10-30 12:29:55 +00:00
Stig Bakken
9a8854b5b1 * improved error reporting in PEAR_Remote::call 2001-10-30 12:28:39 +00:00
Stig Bakken
ed03a30603 * added getKeys method 2001-10-30 12:27:58 +00:00
Stig Bakken
4fc273adda ws 2001-10-30 12:19:36 +00:00
Stig Bakken
31391b8df3 * moved <filelist> from <package> to <release>
* added <state> element
2001-10-30 12:08:07 +00:00
Frank M. Kromann
e9c09b86e1 Adding nextResult() function allowing batches of sql statements to be
executed with one call to the query function.
2001-10-29 23:37:27 +00:00
Frank M. Kromann
51ef66ed67 Adding fbsql.php to PEAR install 2001-10-29 19:28:22 +00:00
Stig Bakken
7ab89b02c4 * started working on "pear list" command 2001-10-29 14:15:43 +00:00
Stig Bakken
b60aedc275 * PEAR_Registry: renamed "upgradePackage" to "updatePackage"
* added tests for PEAR_Config and PEAR_Registry
2001-10-29 12:17:37 +00:00
Stig Bakken
f8055473a4 * moved System.php out of Experimental/ 2001-10-29 12:15:53 +00:00
Stig Bakken
dc9fc4155e * typo 2001-10-29 07:21:08 +00:00
Stig Bakken
c62fdf8f11 * added listPackages
* made packageInfo param optional, if not specified returns info for
  all packages
2001-10-28 23:35:10 +00:00
Stig Bakken
fd42c6afba * nuked PEAR_Packlist class and added PEAR_Registry instead 2001-10-28 23:22:17 +00:00
Stig Bakken
cd0fb34562 * actually implement -s/-S options :-) 2001-10-27 07:52:12 +00:00
Stig Bakken
475796a0d7 removed 2001-10-26 20:05:34 +00:00
Stig Bakken
c278bfc448 * implemented "pear list-packages", the first sub-command using xmlrpc 2001-10-26 11:45:21 +00:00
Stig Bakken
f197cf3630 * PEAR_Config class to maintain system and per-user configuration for
PEAR installations
* PEAR_Remote class to communicate with the backend server (xmlrpc)
* change pear script's option parsing to "-d foo=bar" style
* added -c/-C (user/system config file) and -s/-S (store user/system config)
  options
2001-10-26 10:07:43 +00:00
Markus Fischer
1a247ba1d8 Made error returning on missing extensions consistent across all backends 2001-10-14 01:23:07 +00:00
Martin Jansen
4d54d1919c * updated email adress 2001-10-13 09:32:34 +00:00
Martin Jansen
e9eb586106 * fixed problem with copyright header on some systems. 2001-10-13 06:22:09 +00:00
Martin Jansen
d37016f26d * streamlined the copyright header
* changed path names in pear.bat to more typical values
# The GUI installer on Win32 installs PHP to c:\php by default, so we
# should make that the predefined value in the PEAR batch file.
2001-10-12 20:39:50 +00:00
Alexander Merz
8d66ae62e9 typo 2001-10-12 19:46:21 +00:00
Alexander Merz
262bcc637d win version of pear the pear script 2001-10-12 19:43:58 +00:00
Stig Bakken
405142087c * replaced PEAR::phpVersionIs with version_compare 2001-10-11 22:11:34 +00:00
Stig Bakken
1f40bd4cd9 * updated line numbers 2001-10-11 01:23:53 +00:00
Tomas V.V.Cox
692d30b7be fix a problem with the propagation of baseinstalldir and role 2001-10-10 18:42:23 +00:00
Tomas V.V.Cox
d557151ce7 more clean up/fixes 2001-10-09 02:56:33 +00:00
Tomas V.V.Cox
13682462c7 some clean up 2001-10-08 16:52:33 +00:00
Tomas V.V.Cox
c7239f2b00 more work on Windows support 2001-10-08 06:12:13 +00:00
Tomas V.V.Cox
5f5bbfd3f3 added mkTempDir to create temporal directories 2001-10-08 06:10:54 +00:00
Tomas V.V.Cox
fb487bc38d detect and report error 2001-10-08 03:31:14 +00:00
Tomas V.V.Cox
28f5a1e6e9 use Tar.php class and clean up some unused properties 2001-10-08 03:29:34 +00:00
Tomas V.V.Cox
5b0e540882 work on Windows support (use Tar class and System class) 2001-10-07 20:16:41 +00:00
Tomas V.V.Cox
b46e7d76b4 use the new System class for common file opperations 2001-10-07 20:14:11 +00:00
Tomas V.V.Cox
20505d8483 added tests for PHP version comparing functions 2001-10-05 13:02:08 +00:00
Tomas V.V.Cox
b244f61139 changed the logic of version comparation 2001-10-05 12:46:21 +00:00
Tomas V.V.Cox
1f470ecca6 E_ALL fixes 2001-10-05 01:32:13 +00:00
Tomas V.V.Cox
0ebee4d29f get rid of the RC part of php versions 2001-10-05 00:28:36 +00:00
Tomas V.V.Cox
0786889de0 added method phpVersionIs() to find if a PHP version is minor, greater
or both (see in-line doc for more info)
2001-10-04 19:05:09 +00:00
Jon Parise
c6bed4ce3d Search for the '@' symbol in the DSN from the right instead of the left.
That will allow the password element to include a '@' symbol without
confusing the DSN parser.

Submitted by: Alex L <admin@networkessence.net>
2001-10-04 00:29:37 +00:00
Tomas V.V.Cox
e3e28c8f59 extract only the package.xml file instead of all files 2001-09-29 00:38:24 +00:00
Tomas V.V.Cox
15ac0567f9 implemented infoFromTgzFile() 2001-09-28 00:55:16 +00:00
Tomas V.V.Cox
73b5ff0389 tab vs ws 2001-09-27 23:59:16 +00:00
Tomas V.V.Cox
95d19651f3 don't want "-" in package names 2001-09-27 23:31:15 +00:00
Stig Bakken
f12896d23b * hopefully the only changes required for the initials->user rename 2001-09-04 03:34:59 +00:00
Stig Bakken
04439c305b * rename "initials" to "user" for clarity 2001-09-04 03:23:56 +00:00
Jesus M. Castagnetto
22dc6f2a3b s/fileList/filelist/ 2001-09-02 00:11:44 +00:00
Jesus M. Castagnetto
2f9b7b8737 Changed element and attribute names to lowercase to match the changes
in the package.xml files
2001-09-02 00:09:52 +00:00
Tomas V.V.Cox
a95fb10461 renumber error lines 2001-08-31 19:21:02 +00:00
Tomas V.V.Cox
2567b428b2 fix for DB/tests/db_error2.phpt 2001-08-31 19:13:24 +00:00
Tomas V.V.Cox
bf0ab08fb8 fix problem when mixing different error modes under certain circumstances
(pear/test/pear_error3.phpt)
2001-08-31 17:56:44 +00:00
Tomas V.V.Cox
409b87d41e make some tests to work. Still left the Notice of the deprecated use of
call_user_method, no way to shut it down.
2001-08-31 16:43:08 +00:00
Tomas V.V.Cox
4861c0cf99 Use _default_error_options as the options for PEAR_ERROR_CALLBACK.
Depreciate the use of _default_error_callback
2001-08-31 16:12:33 +00:00
Tomas V.V.Cox
cc747779ce fix userinfo msg in Pear_Error::toString() when callback mode is selected
and style
2001-08-31 13:27:46 +00:00
Tomas V.V.Cox
567c10ba4c killed obscure bug in pushErrorHandling 2001-08-30 19:55:57 +00:00
Tomas V.V.Cox
0fdc143d9e The "actual" mode must be taken, not the error object mode 2001-08-30 15:27:55 +00:00
Tomas V.V.Cox
176bf835e4 added the Mail/mime.php file 2001-08-28 13:39:50 +00:00
Stig Bakken
b3745665dd * tidy up "make install" output 2001-08-28 13:07:33 +00:00
Stig Bakken
821ea15431 * Archive_Tar is no longer experimental 2001-08-28 12:26:47 +00:00
Stig Bakken
c93ec77f15 * Log/Observer.php rename fix 2001-08-28 12:11:32 +00:00
Stig Bakken
36c27603b1 * started work on php file support 2001-08-28 11:18:08 +00:00
Stig Bakken
f7fcf3a701 * fold case when parsing package.xml 2001-08-28 08:52:03 +00:00
Stig Bakken
2ccffc5600 * fixes to make package.xml parsing case insensitive 2001-08-27 21:25:16 +00:00
Tomas V.V.Cox
9037bedb9e The "pear package" command will try to open "./package.xml" if no more
params are given.
2001-08-19 12:53:01 +00:00
Tomas V.V.Cox
df54bca0a0 better error hanlding 2001-08-19 12:37:51 +00:00
Tomas V.V.Cox
cf70755a05 maintain original file perms 2001-08-19 12:30:24 +00:00
Stig Bakken
b96e13a99d Added "phptar" command as proof that the Archive_Tar class works.
# Great work, Vincent!
2001-08-19 00:34:08 +00:00
Tomas V.V.Cox
a0bf4ac47d added support for the following tags in package.xml:
- <State> inside <Release> (package development state: 'alpha','beta','stable','snapshot')
- <Changelog> stores <Release> entries
- <Maintainers> stores multiple <Maintainer> entries
- <Role> inside <Maintainer> ('lead','developer','contributor','helper')
2001-08-18 14:40:25 +00:00
Sebastian Bergmann
d311622203 Forgot to add DB.php. 2001-08-17 08:51:09 +00:00
foobar
12a74c513d These files do not exist anymore. 2001-08-17 08:47:43 +00:00
Chuck Hagenbuch
2b9e767822 PEAR::raiseError() can be called statically - don't assume $this will be
there!
2001-08-15 21:26:12 +00:00
Stig Bakken
84cdabcec0 * point people to the manual instead 2001-08-15 21:03:51 +00:00
Stig Bakken
d400f78079 * expected error codes are stored on a stack now, PEAR::expectError()
pushes into it, PEAR::popExpect() pops off it
* made pear_error test work on other boxes than my own :-)
2001-08-14 21:11:33 +00:00
Stig Bakken
3c801213c6 * updated test (currently passes only on my laptop, sorry...) 2001-08-14 12:49:51 +00:00
Stig Bakken
c49f8aa0ef * added expectError() method 2001-08-14 12:49:25 +00:00
Stig Bakken
ecb2b081f1 @Added --version option to php-config (Stig) 2001-08-13 07:58:29 +00:00
Tomas V.V.Cox
bafa98109c removed my debug code :) 2001-08-11 16:14:14 +00:00
Tomas V.V.Cox
9ca706e8ab don't show is_file() stat errors 2001-08-11 16:11:49 +00:00
Sebastian Bergmann
fe956141fc 'delete' is a reserved word in Zend Engine 2 2001-08-11 08:08:05 +00:00
Sebastian Bergmann
5ac3adf9d2 Rename storage* to container*. 2001-08-10 16:12:33 +00:00
Tomas V.V.Cox
b4cdd3af84 fix multiple factory calls problem with php < 4.0.7 2001-08-09 08:06:52 +00:00
Tomas V.V.Cox
d87bae9f1b *** empty log message *** 2001-08-09 07:56:33 +00:00
Tomas V.V.Cox
02545f0503 spaces 2001-08-09 07:52:29 +00:00
Alexander Merz
25382be8ff fix PHPDoc 2001-08-09 01:11:56 +00:00
Tomas V.V.Cox
96aab6aed4 don't show the call_user_method deprecated use warning (disturbs tests) 2001-08-04 10:47:10 +00:00
Tomas V.V.Cox
fa0481609c * Added the new fetch row mode: DB_FETCHMODE_OBJECT that returns the columns
of a fetched row as object properties
* Added a new class DB_row (the default type of a fetched row object)
* Updated some phpdocs
2001-08-03 14:13:52 +00:00
Tomas V.V.Cox
88748bc7a8 added BaseInstall dir support 2001-08-01 13:24:55 +00:00
Christian Stocker
32e6c484a8 Moved to the /pear repository 2001-07-31 22:35:20 +00:00
Tomas V.V.Cox
2c1af4d645 package() now returns the full path of the generated package also improved
windows support (if php getcwd() returns also the drive letter, please test it)
2001-07-31 13:36:54 +00:00
Stig Bakken
ae92dc7139 * DB_storage broke when DB_common::query was added, fixed 2001-07-31 07:57:14 +00:00
Christian Stocker
410dfbe6a4 moved from the Experimental dir. the basic things should work... 2001-07-30 15:54:28 +00:00
Tomas V.V.Cox
1e2d51855c raiseError() now can accepts a PEAR error object in its first argument. With
this, users can "re-throw" a previously created PEAR error object (very
useful after the use of (push|pop)ErrorHandling)
2001-07-29 04:25:33 +00:00
Tomas V.V.Cox
fa75ae3394 Added the methods pushErrorHandler and popErrorHandler. With this it's
posible to override the actual error handler with a new one for the time
you need and restore it back when finish.
2001-07-29 03:46:55 +00:00
Alexander Merz
ca5fd10e1d Bugfix by Johannes Erdfelt 2001-07-27 11:53:35 +00:00
Tomas V.V.Cox
538c838ac9 DB::assertExtension-> trigger a useful error message if backend extension couldn't be loaded 2001-07-26 00:01:27 +00:00
Stig Bakken
082165f198 * added emacs footer 2001-07-25 21:20:31 +00:00
Tomas V.V.Cox
30ec364e49 move the package list handler methods to the new Packlist.php also removed
the unused code
2001-07-19 11:15:48 +00:00
Tomas V.V.Cox
e78a175fc0 This class will handle the pear packages database (it's experimental now) 2001-07-19 11:10:28 +00:00
Tomas V.V.Cox
0d629b854a added TODO and checks before try to open the package.xml file 2001-07-19 10:32:06 +00:00
Tomas V.V.Cox
9638928317 - Only decompress package once
- Allow relative directory package calls (for ex:
  pear install packs/Pear_DB-1.1.tgz)
2001-07-18 23:13:56 +00:00
Tomas V.V.Cox
65af9358cd - remove the xml parser code (use PEAR_Common::infoFromDescFile)
- added the new package.xml Dir tag support
- killed many bugs and warnings

(as it is quite usable yet, work is still in progress)
2001-07-18 17:29:09 +00:00
Tomas V.V.Cox
97c0042c04 - always write a the package definition file as 'package.xml' inside the package
- other clean-up's
2001-07-18 17:13:38 +00:00
Tomas V.V.Cox
073f9ec70f killed some warnings 2001-07-18 17:11:28 +00:00
Jon Parise
dc5e76ec57 Private members don't have to be functions. 2001-07-18 00:27:15 +00:00
Jon Parise
28d5698523 Woops, missed a closing paren. 2001-07-17 23:56:46 +00:00
Jon Parise
36868ff301 Describe the standards for function naming and private methods. 2001-07-17 23:55:10 +00:00
Tomas V.V.Cox
c75f153daa Oops, said include but do require (thanks Jon and Rasmus) 2001-07-17 20:46:16 +00:00
Tomas V.V.Cox
bed51fa581 - Removed the xml parser code (use now PEAR_Common::infoFromDescriptionFile())
- Added the ability to build packages without the need of being in the same
  dir as the package.xml file (f.ex: pear package ./mypack/package.xml)
- Removed methods log() and mkdirHier() as they are now in Common.php
- More debug code and error checks
2001-07-17 19:21:55 +00:00
Tomas V.V.Cox
5cb96db143 moved methods log() and mkdirHier() from Packager/Installer to here 2001-07-17 19:13:40 +00:00
Tomas V.V.Cox
55c6e37956 include only the needed files 2001-07-17 19:11:48 +00:00
Chuck Hagenbuch
20a61a49ca fix problem with static usage... 2001-07-17 16:01:16 +00:00
Tomas V.V.Cox
e3e8ae44c7 extend infoFromDescriptionFile() to:
- Handle the new FileList->Dir tag format (see
http://marc.theaimsgroup.com/?l=pear-dev&m=99071271521558&w=2)
- Attributes of Files can inherit from Dir
- Support for the experimental LibFile/LibName/Sources tags

other indents and fixes
2001-07-16 18:01:09 +00:00
Stig Bakken
8406547fdb (PEAR DB) some doc fixes 2001-07-15 22:54:08 +00:00
Tomas V.V.Cox
51c54c45bd added DB_PARAM_MISC constant to use in prepare/execute 2001-07-12 11:14:12 +00:00
Tomas V.V.Cox
dc60b4d466 added LOCK/UNLOCK to mainps queries (reported by Erik Hjortsberg) 2001-07-11 11:03:27 +00:00
Tomas V.V.Cox
2bf0a0e5af added NEED_MORE_DATA error message to $errorMessages 2001-07-10 21:49:51 +00:00
Tomas V.V.Cox
48cbbbb3db minor in-line doc fix 2001-07-10 11:55:15 +00:00
Sebastian Bergmann
88e45cfd36 Convert double-quotes to single-quotes. 2001-07-07 23:15:08 +00:00
Martin Jansen
7efccca429 * reverted "DIRECTORY_SEPARATOR" patch 2001-07-07 15:54:27 +00:00
Martin Jansen
9899ec9bef * added missing constant 2001-07-07 12:45:20 +00:00
Tomas V.V.Cox
d1d7432da4 addes more logging and security options 2001-07-07 00:25:39 +00:00
Tomas V.V.Cox
0fe40d53b0 whitespaces 2001-07-06 19:23:41 +00:00
Christian Stocker
f74079c8cc Patch by Tobias, so parseInput returns pearError 2001-07-06 10:24:12 +00:00
Christian Stocker
d153a17da3 stupid missing semicolon 2001-07-04 11:24:49 +00:00
Christian Stocker
51a4c0ceb6 Write-Patch by Alexander for bug reported by Yavor 2001-07-03 09:34:35 +00:00
Christian Stocker
a65e4e91a1 Moved Config-Package from Experimental to main-directory, since noone complained about it ;) 2001-07-02 09:14:28 +00:00
Sebastian Bergmann
512f6af726 Fix for #11821. 2001-07-01 14:15:49 +00:00
Tomas V.V.Cox
dfa35a78e6 Forget to add the $this->result param to fetchInto 2001-06-08 01:15:35 +00:00
Tomas V.V.Cox
48920fbb1b Changed constant DB_OK from 0 to 1. So if you set a default error handler,
this will improve fetchInto usability [while ($res->fetchInto($row))],
because don't disturb the while loop
2001-06-07 13:44:44 +00:00
Tomas V.V.Cox
50cb6e3733 change DB_result::fetchRow to use extension fetchInto instead of
DB_result::fetchInto (speed improvement)
2001-06-07 12:55:14 +00:00
Andrei Zmievski
6c4d96e8ea Fix long option parsing. 2001-05-29 16:18:35 +00:00
Stig Bakken
fc7d897490 @Added "pearize" script to generate Makefile.in files for PEAR extensions 2001-05-28 11:15:19 +00:00
Stig Bakken
9f3434264a * added LibFile element, used to build Makefile.in 2001-05-28 11:14:47 +00:00
Stig Bakken
7d52787a96 * missing fold marks 2001-05-28 06:31:03 +00:00
Stig Bakken
ae9da3a9c1 * typo 2001-05-27 09:40:58 +00:00
Tomas V.V.Cox
881f74263a -Changed $param[0] to $param{0} less ambiguous
-Readd "-?" param that shows the usage msg
2001-05-23 14:38:09 +00:00
Stig Bakken
2d6d626c75 * added missing doc for PEAR::raiseError skipmsg parameter 2001-05-23 12:37:43 +00:00
Tomas V.V.Cox
e88dd1ac99 remove "?" from Console_Getopt. Sorry Andrei it was there and
I left there :)
2001-05-22 16:30:36 +00:00
Tomas V.V.Cox
370f099492 - added error cheking and abort when no script install dir is set
- minor typos
2001-05-22 16:25:04 +00:00
Tomas V.V.Cox
a3d92b745a - Added the following params support:
* -p set script install dir
	* -e set extension install dir
	* -d set documentation dest dir
	* -v set verbose level
- Some error reporting clean up
- Added the standar PHP copyright header and authors
2001-05-22 16:21:02 +00:00
Stig Bakken
83b18832aa @Define HAVE_CONFIG_H when building standalone DSO extensions (Stig) 2001-05-20 05:29:54 +00:00
Jon Parise
12a5c62402 - Renaming $no_cache to $caching and inverting it's meaning
- Adding accessors for private $caching flag: getCaching() and setCaching()
2001-05-15 15:33:44 +00:00
Tomas V.V.Cox
ea8cd965fe Put the verbose mode to work again. Some other style. 2001-05-15 14:15:09 +00:00
Tomas V.V.Cox
1485283db2 white spaces and indenting 2001-05-15 14:03:04 +00:00
Christian Stocker
58c92275e9 2 files from Cache/ were missing here, too. 2001-05-15 10:29:07 +00:00
Stig Bakken
67212de780 updated the .emacs example 2001-05-06 23:44:06 +00:00
Ulf Wendel
a8bc329291 Made Cache::save() a wrapper for Cache::extSave() 2001-04-24 08:27:11 +00:00
Jon Parise
34f6baaef6 Updater.php -> Uploader.php 2001-04-23 00:16:56 +00:00
Stig Bakken
4d9660d3b9 * fixed PEAR_Common::infoFromDescriptionFile 2001-04-22 07:43:34 +00:00
Stig Bakken
2cf1b8d345 * expanded the following constants and made them available in PHP:
DEFAULT_INCLUDE_PATH
  PEAR_INSTALL_DIR
  PHP_EXTENSION_DIR
  PHP_BINDIR
  PHP_LIBDIR
  PHP_DATADIR
  PHP_SYSCONFDIR
  PHP_LOCALSTATEDIR
  PHP_CONFIG_FILE_PATH
* no longer generating pear/PEAR.php
* fixed some tests
* some more installer work
2001-04-22 01:09:14 +00:00
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