cvs: php4(PHP_4_3) /pear System.php install-pear.php package-PEAR.xml package.dtd /pear/OS Guess.php /pear/PEAR Common.php Config.php Dependency.php
Installer.php Remote.php /pear/PEAR/Command Auth.php Build.php Common.php Config.php Install.php Package.php Registry.php Remote.php
/pear/PEAR/Frontend CLI.php /pear/scripts pear.bat pear.in phpize.in
| From: | Stig Bakken | Date: | Fri, 13 Dec 2002 02:14:26 +0000 |
| Subject: | cvs: php4(PHP_4_3) /pear System.php install-pear.php package-PEAR.xml package.dtd /pear/OS Guess.php /pear/PEAR Common.php Config.php Dependency.php Installer.php Remote.php /pear/PEAR/Command Auth.php Build.php Common.php Config.php Install.php Package.php Registry.php Remote.php /pear/PEAR/Frontend CLI.php /pear/scripts pear.bat pear.in phpize.in |
||
| Groups: | php.pear.cvs | ||
| Request: | Send a blank email to pear-cvs+get-7866@lists.php.net to get a copy of this message | ||
ssb Thu Dec 12 21:14:26 2002 EDT
Modified files: (Branch: PHP_4_3)
/php4/pear System.php install-pear.php package-PEAR.xml package.dtd
/php4/pear/OS Guess.php
/php4/pear/PEAR Common.php Config.php Dependency.php Installer.php
Remote.php
/php4/pear/PEAR/Command Auth.php Build.php Common.php Config.php
Install.php Package.php Registry.php
Remote.php
/php4/pear/PEAR/Frontend CLI.php
/php4/pear/scripts pear.bat pear.in phpize.in
Log:
MFH
Index: php4/pear/System.php diff -u php4/pear/System.php:1.21 php4/pear/System.php:1.21.2.1 --- php4/pear/System.php:1.21 Sat Oct 12 10:17:44 2002 +++ php4/pear/System.php Thu Dec 12 21:14:22 2002 @@ -16,7 +16,7 @@ // | Authors: Tomas V.V.Cox <cox@idecnet.com> | // +----------------------------------------------------------------------+ // -// $Id: System.php,v 1.21 2002/10/12 14:17:44 ssb Exp $ +// $Id: System.php,v 1.21.2.1 2002/12/13 02:14:22 ssb Exp $ // require_once 'PEAR.php'; @@ -43,7 +43,7 @@ * * @package System * @author Tomas V.V.Cox <cox@idecnet.com> -* @version $Revision: 1.21 $ +* @version $Revision: 1.21.2.1 $ * @access public * @see http://pear.php.net/manual/ */ @@ -61,7 +61,7 @@ function _parseArgs($argv, $short_options, $long_options = null) { if (!is_array($argv) && $argv !== null) { - $argv = preg_split('/\s+/', $argv); + $argv = preg_split('/\s+/', ': '.$argv); } return Console_Getopt::getopt($argv, $short_options); } Index: php4/pear/install-pear.php diff -u php4/pear/install-pear.php:1.6.2.2 php4/pear/install-pear.php:1.6.2.3 --- php4/pear/install-pear.php:1.6.2.2 Thu Nov 14 18:26:26 2002 +++ php4/pear/install-pear.php Thu Dec 12 21:14:22 2002 @@ -1,6 +1,6 @@ <?php -/* $Id: install-pear.php,v 1.6.2.2 2002/11/14 23:26:26 ssb Exp $ */ +/* $Id: install-pear.php,v 1.6.2.3 2002/12/13 02:14:22 ssb Exp $ */ $pear_dir = dirname(__FILE__); ini_set('include_path', $pear_dir); Index: php4/pear/package-PEAR.xml diff -u php4/pear/package-PEAR.xml:1.28.2.3 php4/pear/package-PEAR.xml:1.28.2.4 --- php4/pear/package-PEAR.xml:1.28.2.3 Tue Nov 26 20:01:25 2002 +++ php4/pear/package-PEAR.xml Thu Dec 12 21:14:22 2002 @@ -31,9 +31,9 @@ </maintainer> </maintainers> <release> - <version>1.0b3-dev</version> + <version>1.0b3</version> <state>stable</state> - <date>2002-12-01</date> + <date>2002-12-13</date> <notes> * fixed "info" shortcut (conflicted with "install") </notes> @@ -72,13 +72,22 @@ </dir> <dir name="scripts"> <file baseinstalldir="/" role="script" install-as="pear" name="pear.in"> - <replace from="@prefix@/bin" to="PHP_BINDIR" type="php-const"/> + <replace from="@php_bin@" to="php_bin" type="pear-config"/> <replace from="@pear_version@" to="version" type="package-info"/> <replace from="@include_path@" to="php_dir" type="pear-config"/> </file> - <file baseinstalldir="/" role="script" platform="windows" install-as="pear.bat" name="pear.bat"></file> + <file baseinstalldir="/" role="script" platform="windows" install-as="pear.bat" name="pear.bat"> + <replace from='"@php_bin@"' to="php_bin" type="pear-config"/> + <replace from='"@include_path@"' to="php_dir" type="pear-config"/> + </file> </dir> </filelist> + <warning> +If you are upgrading to 1.0b3 or newer from 1.0b2 or older, your "pear" +command will probably stop working. To fix, either use go-pear, +or edit the first line of your installed "pear" and replace "@php_bin@" +with the path to your PHP CLI or CGI binary. +</warning> <deps> <dep type="php" rel="ge" version="4.1"/> <dep type="pkg" rel="ge" version="0.4">Archive_Tar</dep> Index: php4/pear/package.dtd diff -u php4/pear/package.dtd:1.27.4.1 php4/pear/package.dtd:1.27.4.2 --- php4/pear/package.dtd:1.27.4.1 Tue Nov 26 20:01:25 2002 +++ php4/pear/package.dtd Thu Dec 12 21:14:22 2002 @@ -1,5 +1,5 @@ <!-- - $Id: package.dtd,v 1.27.4.1 2002/11/27 01:01:25 ssb Exp $ + $Id: package.dtd,v 1.27.4.2 2002/12/13 02:14:22 ssb Exp $ This is the PEAR package description, version 1.0b9. It should be used with the informal public identifier: Index: php4/pear/OS/Guess.php diff -u php4/pear/OS/Guess.php:1.3.6.1 php4/pear/OS/Guess.php:1.3.6.2 --- php4/pear/OS/Guess.php:1.3.6.1 Thu Nov 14 18:26:26 2002 +++ php4/pear/OS/Guess.php Thu Dec 12 21:14:22 2002 @@ -17,7 +17,7 @@ // | | // +----------------------------------------------------------------------+ // -// $Id: Guess.php,v 1.3.6.1 2002/11/14 23:26:26 ssb Exp $ +// $Id: Guess.php,v 1.3.6.2 2002/12/13 02:14:22 ssb Exp $ // {{{ uname examples Index: php4/pear/PEAR/Common.php diff -u php4/pear/PEAR/Common.php:1.81.2.2 php4/pear/PEAR/Common.php:1.81.2.3 --- php4/pear/PEAR/Common.php:1.81.2.2 Tue Nov 26 20:01:25 2002 +++ php4/pear/PEAR/Common.php Thu Dec 12 21:14:22 2002 @@ -17,7 +17,7 @@ // | Tomas V.V.Cox <cox@idecnet.com> | // +----------------------------------------------------------------------+ // -// $Id: Common.php,v 1.81.2.2 2002/11/27 01:01:25 ssb Exp $ +// $Id: Common.php,v 1.81.2.3 2002/12/13 02:14:22 ssb Exp $ require_once 'PEAR.php'; require_once 'Archive/Tar.php'; Index: php4/pear/PEAR/Config.php diff -u php4/pear/PEAR/Config.php:1.35 php4/pear/PEAR/Config.php:1.35.2.1 --- php4/pear/PEAR/Config.php:1.35 Tue Oct 22 19:07:10 2002 +++ php4/pear/PEAR/Config.php Thu Dec 12 21:14:23 2002 @@ -16,7 +16,7 @@ // | Author: Stig Bakken <ssb@fast.no> | // +----------------------------------------------------------------------+ // -// $Id: Config.php,v 1.35 2002/10/22 23:07:10 ssb Exp $ +// $Id: Config.php,v 1.35.2.1 2002/12/13 02:14:23 ssb Exp $ require_once 'PEAR.php'; require_once 'System.php'; @@ -27,60 +27,154 @@ */ $GLOBALS['_PEAR_Config_instance'] = null; -// in case a --without-pear PHP installation is used -if (!defined('PEAR_INSTALL_DIR')) { - define('PEAR_INSTALL_DIR', PHP_LIBDIR); -} -if (!defined('PEAR_EXTENSION_DIR')) { - define('PEAR_EXTENSION_DIR', PHP_EXTENSION_DIR); -} - -define('PEAR_CONFIG_DEFAULT_BINDIR', - PHP_BINDIR); -define('PEAR_CONFIG_DEFAULT_DOCDIR', - PEAR_INSTALL_DIR.DIRECTORY_SEPARATOR.'docs'); -if (@is_dir(PEAR_INSTALL_DIR.DIRECTORY_SEPARATOR.'lib')) { - define('PEAR_CONFIG_DEFAULT_PHPDIR', - PEAR_INSTALL_DIR.DIRECTORY_SEPARATOR.'lib'); -} else { - define('PEAR_CONFIG_DEFAULT_PHPDIR', - PEAR_INSTALL_DIR); -} -define('PEAR_CONFIG_DEFAULT_DATADIR', - PEAR_INSTALL_DIR.DIRECTORY_SEPARATOR.'data'); -define('PEAR_CONFIG_DEFAULT_TESTDIR', - PEAR_INSTALL_DIR.DIRECTORY_SEPARATOR.'tests'); +// Below we define constants with default values for all configuration +// parameters except username/password. All of them can have their +// defaults set through environment variables. The reason we use the +// PHP_ prefix is for some security, PHP protects environment +// variables starting with PHP_*. + +if (isset($_ENV['PHP_PEAR_SYSCONF_DIR'])) { + define('PEAR_CONFIG_SYSCONFDIR', $_ENV['PHP_PEAR_SYSCONF_DIR']); +} elseif (isset($_ENV['SystemRoot'])) { + define('PEAR_CONFIG_SYSCONFDIR', $_ENV['SystemRoot']); +} elseif (@is_dir(PHP_SYSCONFDIR)) { + define('PEAR_CONFIG_SYSCONFDIR', PHP_SYSCONFDIR); +} -define('PEAR_CONFIG_DEFAULT_CACHEDIR', - System::tmpdir() . DIRECTORY_SEPARATOR . 'pear' . DIRECTORY_SEPARATOR . 'cache'); +// Default for master_server +if (isset($_ENV['PHP_PEAR_MASTER_SERVER'])) { + define('PEAR_CONFIG_DEFAULT_MASTER_SERVER', $_ENV['PHP_PEAR_MASTER_SERVER']); +} else { + define('PEAR_CONFIG_DEFAULT_MASTER_SERVER', 'pear.php.net'); +} -if (@is_dir(PHP_SYSCONFDIR)) { - define('PEAR_CONFIG_SYSCONFDIR', PHP_SYSCONFDIR); +// Default for http_proxy +if (isset($_ENV['PHP_PEAR_HTTP_PROXY'])) { + define('PEAR_CONFIG_DEFAULT_HTTP_PROXY', $_ENV['PHP_PEAR_HTTP_PROXY']); +} elseif (isset($_ENV['http_proxy'])) { + define('PEAR_CONFIG_DEFAULT_HTTP_PROXY', $_ENV['http_proxy']); } else { - // real bootstrapping nightmare - if (OS_WINDOWS) { - if (@is_dir(PHP_CONFIG_FILE_PATH)) { - define('PEAR_CONFIG_SYSCONFDIR', PHP_CONFIG_FILE_PATH); - } elseif (@is_dir('c:\winnt') && @file_exists('c:\winnt\php.ini')) { - define('PEAR_CONFIG_SYSCONFDIR', 'c:\winnt'); - } elseif (@is_dir('c:\windows') && @file_exists('c:\windows\php.ini')) { - define('PEAR_CONFIG_SYSCONFDIR', 'c:\windows'); - } - } - if (!defined('PEAR_CONFIG_SYSCONFDIR')) { - define('PEAR_CONFIG_SYSCONFDIR', PHP_SYSCONFDIR); + define('PEAR_CONFIG_DEFAULT_HTTP_PROXY', ''); +} + +// Default for php_dir +if (isset($_ENV['PHP_PEAR_INSTALL_DIR'])) { + define('PEAR_CONFIG_DEFAULT_PHP_DIR', $_ENV['PHP_PEAR_INSTALL_DIR']); +} else { + if (@is_dir(PEAR_INSTALL_DIR.DIRECTORY_SEPARATOR.'lib')) { + define('PEAR_CONFIG_DEFAULT_PHP_DIR', + PEAR_INSTALL_DIR.DIRECTORY_SEPARATOR.'lib'); + } else { + define('PEAR_CONFIG_DEFAULT_PHP_DIR', PEAR_INSTALL_DIR); } } -define('PEAR_DEFAULT_UMASK', umask()); -if (OS_WINDOWS) { - define('PEAR_DEFAULT_GPG_BIN', System::which('gpg', 'c:\gnupg\gpg.exe')); +// Default for ext_dir +if (isset($_ENV['PHP_PEAR_EXTENSION_DIR'])) { + define('PEAR_CONFIG_DEFAULT_EXT_DIR', $_ENV['PHP_PEAR_EXTENSION_DIR']); +} else { + define('PEAR_CONFIG_DEFAULT_EXT_DIR', ini_get('extension_dir')); +} + +// Default for doc_dir +if (isset($_ENV['PHP_PEAR_DOC_DIR'])) { + define('PEAR_CONFIG_DEFAULT_DOC_DIR', $_ENV['PHP_PEAR_DOC_DIR']); +} else { + define('PEAR_CONFIG_DEFAULT_DOC_DIR', + PEAR_INSTALL_DIR.DIRECTORY_SEPARATOR.'docs'); +} + +// Default for bin_dir +if (isset($_ENV['PHP_PEAR_BIN_DIR'])) { + define('PEAR_CONFIG_DEFAULT_BIN_DIR', $_ENV['PHP_PEAR_BIN_DIR']); +} else { + define('PEAR_CONFIG_DEFAULT_BIN_DIR', PHP_BINDIR); +} + +// Default for data_dir +if (isset($_ENV['PHP_PEAR_DATA_DIR'])) { + define('PEAR_CONFIG_DEFAULT_DATA_DIR', $_ENV['PHP_PEAR_DATA_DIR']); +} else { + define('PEAR_CONFIG_DEFAULT_DATA_DIR', + PEAR_INSTALL_DIR.DIRECTORY_SEPARATOR.'data'); +} + +// Default for test_dir +if (isset($_ENV['PHP_PEAR_TEST_DIR'])) { + define('PEAR_CONFIG_DEFAULT_TEST_DIR', $_ENV['PHP_PEAR_TEST_DIR']); +} else { + define('PEAR_CONFIG_DEFAULT_TEST_DIR', + PEAR_INSTALL_DIR.DIRECTORY_SEPARATOR.'tests'); +} + +// Default for cache_dir +if (isset($_ENV['PHP_PEAR_CACHE_DIR'])) { + define('PEAR_CONFIG_DEFAULT_CACHE_DIR', $_ENV['PHP_PEAR_CACHE_DIR']); +} else { + define('PEAR_CONFIG_DEFAULT_CACHE_DIR', + System::tmpdir() . DIRECTORY_SEPARATOR . 'pear' . + DIRECTORY_SEPARATOR . 'cache'); +} + +// Default for php_bin +if (isset($_ENV['PHP_PEAR_PHP_BIN'])) { + define('PEAR_CONFIG_DEFAULT_PHP_BIN', $_ENV['PHP_PEAR_PHP_BIN']); +} else { + define('PEAR_CONFIG_DEFAULT_PHP_BIN', PEAR_CONFIG_DEFAULT_BIN_DIR. + DIRECTORY_SEPARATOR.'php'.(OS_WINDOWS ? '.exe' : '')); +} + +// Default for verbose +if (isset($_ENV['PHP_PEAR_VERBOSE'])) { + define('PEAR_CONFIG_DEFAULT_VERBOSE', $_ENV['PHP_PEAR_VERBOSE']); +} else { + define('PEAR_CONFIG_DEFAULT_VERBOSE', 1); +} + +// Default for preferred_state +if (isset($_ENV['PHP_PEAR_PREFERRED_STATE'])) { + define('PEAR_CONFIG_DEFAULT_PREFERRED_STATE', $_ENV['PHP_PEAR_PREFERRED_STATE']); +} else { + define('PEAR_CONFIG_DEFAULT_PREFERRED_STATE', 'stable'); +} + +// Default for umask +if (isset($_ENV['PHP_PEAR_UMASK'])) { + define('PEAR_CONFIG_DEFAULT_UMASK', $_ENV['PHP_PEAR_UMASK']); +} else { + define('PEAR_CONFIG_DEFAULT_UMASK', umask()); +} + +// Default for cache_ttl +if (isset($_ENV['PHP_PEAR_CACHE_TTL'])) { + define('PEAR_CONFIG_DEFAULT_CACHE_TTL', $_ENV['PHP_PEAR_CACHE_TTL']); +} else { + define('PEAR_CONFIG_DEFAULT_CACHE_TTL', 0); +} + +// Default for sig_type +if (isset($_ENV['PHP_PEAR_SIG_TYPE'])) { + define('PEAR_CONFIG_DEFAULT_SIG_TYPE', $_ENV['PHP_PEAR_SIG_TYPE']); } else { - define('PEAR_DEFAULT_GPG_BIN', System::which('gpg', '/usr/local/bin/gpg')); + define('PEAR_CONFIG_DEFAULT_SIG_TYPE', 'gpg'); } -define('PEAR_DEFAULT_SIG_KEYDIR', - PEAR_CONFIG_SYSCONFDIR . DIRECTORY_SEPARATOR . 'pearkeys'); +// Default for sig_bin +if (isset($_ENV['PHP_PEAR_SIG_BIN'])) { + define('PEAR_CONFIG_DEFAULT_SIG_BIN', $_ENV['PHP_PEAR_SIG_BIN']); +} else { + define('PEAR_CONFIG_DEFAULT_SIG_BIN', + System::which( + 'gpg', OS_WINDOWS ? 'c:\gnupg\gpg.exe' : '/usr/local/bin/gpg')); +} + +// Default for sig_keydir +if (isset($_ENV['PHP_PEAR_SIG_KEYDIR'])) { + define('PEAR_CONFIG_DEFAULT_SIG_KEYDIR', $_ENV['PHP_PEAR_SIG_KEYDIR']); +} else { + define('PEAR_CONFIG_DEFAULT_SIG_KEYDIR', + PEAR_CONFIG_SYSCONFDIR . DIRECTORY_SEPARATOR . 'pearkeys'); +} /** * This is a class for storing configuration data, keeping track of @@ -138,7 +232,7 @@ ), 'http_proxy' => array( 'type' => 'string', - 'default' => '', + 'default' => PEAR_CONFIG_DEFAULT_HTTP_PROXY, 'doc' => 'HTTP proxy (host:port) to use when downloading packages', 'prompt' => 'HTTP Proxy Server Address', 'group' => 'Internet Access', @@ -146,53 +240,60 @@ // File Locations 'php_dir' => array( 'type' => 'directory', - 'default' => PEAR_CONFIG_DEFAULT_PHPDIR, + 'default' => PEAR_CONFIG_DEFAULT_PHP_DIR, 'doc' => 'directory where .php files are installed', 'prompt' => 'PEAR directory', 'group' => 'File Locations', ), 'ext_dir' => array( 'type' => 'directory', - 'default' => PEAR_EXTENSION_DIR, + 'default' => PEAR_CONFIG_DEFAULT_EXT_DIR, 'doc' => 'directory where loadable extensions are installed', 'prompt' => 'PHP extension directory', 'group' => 'File Locations', ), 'doc_dir' => array( 'type' => 'directory', - 'default' => PEAR_CONFIG_DEFAULT_DOCDIR, + 'default' => PEAR_CONFIG_DEFAULT_DOC_DIR, 'doc' => 'directory where documentation is installed', 'prompt' => 'PEAR documentation directory', 'group' => 'File Locations', ), 'bin_dir' => array( 'type' => 'directory', - 'default' => PEAR_CONFIG_DEFAULT_BINDIR, + 'default' => PEAR_CONFIG_DEFAULT_BIN_DIR, 'doc' => 'directory where executables are installed', 'prompt' => 'PEAR executables directory', 'group' => 'File Locations', ), 'data_dir' => array( 'type' => 'directory', - 'default' => PEAR_CONFIG_DEFAULT_DATADIR, + 'default' => PEAR_CONFIG_DEFAULT_DATA_DIR, 'doc' => 'directory where data files are installed', 'prompt' => 'PEAR data directory', 'group' => 'File Locations (Advanced)', ), 'test_dir' => array( 'type' => 'directory', - 'default' => PEAR_CONFIG_DEFAULT_TESTDIR, + 'default' => PEAR_CONFIG_DEFAULT_TEST_DIR, 'doc' => 'directory where regression tests are installed', 'prompt' => 'PEAR test directory', 'group' => 'File Locations (Advanced)', ), 'cache_dir' => array( 'type' => 'directory', - 'default' => PEAR_CONFIG_DEFAULT_CACHEDIR, + 'default' => PEAR_CONFIG_DEFAULT_CACHE_DIR, 'doc' => 'directory which is used for XMLRPC cache', 'prompt' => 'PEAR Installer cache directory', 'group' => 'File Locations (Advanced)', ), + 'php_bin' => array( + 'type' => 'file', + 'default' => PEAR_CONFIG_DEFAULT_PHP_BIN, + 'doc' => 'PHP CLI/CGI binary for executing scripts', + 'prompt' => 'PHP CLI/CGI binary', + 'group' => 'File Locations (Advanced)', + ), // Maintainers 'username' => array( 'type' => 'string', @@ -211,7 +312,7 @@ // Advanced 'verbose' => array( 'type' => 'integer', - 'default' => 1, + 'default' => PEAR_CONFIG_DEFAULT_VERBOSE, 'doc' => 'verbosity level 0: really quiet 1: somewhat quiet @@ -222,7 +323,7 @@ ), 'preferred_state' => array( 'type' => 'set', - 'default' => 'stable', + 'default' => PEAR_CONFIG_DEFAULT_PREFERRED_STATE, 'doc' => 'the installer will prefer releases with this state when installing packages without a version or state specified', 'valid_set' => array( 'stable', 'beta', 'alpha', 'devel', 'snapshot'), @@ -231,21 +332,21 @@ ), 'umask' => array( 'type' => 'mask', - 'default' => PEAR_DEFAULT_UMASK, + 'default' => PEAR_CONFIG_DEFAULT_UMASK, 'doc' => 'umask used when creating files (Unix-like systems only)', 'prompt' => 'Unix file mask', 'group' => 'Advanced', ), 'cache_ttl' => array( 'type' => 'integer', - 'default' => 0, + 'default' => PEAR_CONFIG_DEFAULT_CACHE_TTL, 'doc' => 'amount of secs where the local cache is used and not updated', 'prompt' => 'Cache TimeToLive', 'group' => 'Advanced', ), 'sig_type' => array( 'type' => 'set', - 'default' => 'gpg', + 'default' => PEAR_CONFIG_DEFAULT_SIG_TYPE, 'doc' => 'which package signature mechanism to use', 'valid_set' => array('gpg'), 'prompt' => 'Package Signature Type', @@ -253,26 +354,25 @@ ), 'sig_bin' => array( 'type' => 'string', - 'default' => PEAR_DEFAULT_GPG_BIN, + 'default' => PEAR_CONFIG_DEFAULT_SIG_BIN, 'doc' => 'which package signature mechanism to use', 'prompt' => 'Signature Handling Program', 'group' => 'Maintainers', ), + 'sig_keyid' => array( + 'type' => 'string', + 'default' => '', + 'doc' => 'which key to use for signing with', + 'prompt' => 'Signature Key Id', + 'group' => 'Maintainers', + ), 'sig_keydir' => array( 'type' => 'string', - 'default' => PEAR_DEFAULT_SIG_KEYDIR, + 'default' => PEAR_CONFIG_DEFAULT_SIG_KEYDIR, 'doc' => 'which package signature mechanism to use', 'prompt' => 'Signature Key Directory', 'group' => 'Maintainers', ), -/* - 'testset1' => array( - 'type' => 'set', - 'default' => 'foo', - 'doc' => 'test set', - 'valid_set' => array('foo', 'bar'), - ), -*/ ); // }}} Index: php4/pear/PEAR/Dependency.php diff -u php4/pear/PEAR/Dependency.php:1.14.4.1 php4/pear/PEAR/Dependency.php:1.14.4.2 --- php4/pear/PEAR/Dependency.php:1.14.4.1 Thu Nov 14 18:26:27 2002 +++ php4/pear/PEAR/Dependency.php Thu Dec 12 21:14:23 2002 @@ -17,7 +17,7 @@ // | Stig Bakken <ssb@fast.no> | // +----------------------------------------------------------------------+ // -// $Id: Dependency.php,v 1.14.4.1 2002/11/14 23:26:27 ssb Exp $ +// $Id: Dependency.php,v 1.14.4.2 2002/12/13 02:14:23 ssb Exp $ /** * Methods for dependencies check. Based on Stig's dependencies RFC Index: php4/pear/PEAR/Installer.php diff -u php4/pear/PEAR/Installer.php:1.81.2.2 php4/pear/PEAR/Installer.php:1.81.2.3 --- php4/pear/PEAR/Installer.php:1.81.2.2 Mon Nov 25 20:33:37 2002 +++ php4/pear/PEAR/Installer.php Thu Dec 12 21:14:23 2002 @@ -17,7 +17,7 @@ // | Tomas V.V.Cox <cox@idecnet.com> | // +----------------------------------------------------------------------+ // -// $Id: Installer.php,v 1.81.2.2 2002/11/26 01:33:37 ssb Exp $ +// $Id: Installer.php,v 1.81.2.3 2002/12/13 02:14:23 ssb Exp $ require_once 'PEAR/Common.php'; require_once 'PEAR/Registry.php'; Index: php4/pear/PEAR/Remote.php diff -u php4/pear/PEAR/Remote.php:1.34.2.1 php4/pear/PEAR/Remote.php:1.34.2.2 --- php4/pear/PEAR/Remote.php:1.34.2.1 Mon Nov 25 18:49:46 2002 +++ php4/pear/PEAR/Remote.php Thu Dec 12 21:14:23 2002 @@ -16,7 +16,7 @@ // | Author: Stig Bakken <ssb@fast.no> | // +----------------------------------------------------------------------+ // -// $Id: Remote.php,v 1.34.2.1 2002/11/25 23:49:46 ssb Exp $ +// $Id: Remote.php,v 1.34.2.2 2002/12/13 02:14:23 ssb Exp $ require_once 'PEAR.php'; require_once 'PEAR/Config.php'; Index: php4/pear/PEAR/Command/Auth.php diff -u php4/pear/PEAR/Command/Auth.php:1.10.4.1 php4/pear/PEAR/Command/Auth.php:1.10.4.2 --- php4/pear/PEAR/Command/Auth.php:1.10.4.1 Tue Nov 26 16:53:43 2002 +++ php4/pear/PEAR/Command/Auth.php Thu Dec 12 21:14:23 2002 @@ -16,7 +16,7 @@ // | Author: Stig Bakken <ssb@fast.no> | // +----------------------------------------------------------------------+ // -// $Id: Auth.php,v 1.10.4.1 2002/11/26 21:53:43 ssb Exp $ +// $Id: Auth.php,v 1.10.4.2 2002/12/13 02:14:23 ssb Exp $ require_once "PEAR/Command/Common.php"; require_once "PEAR/Remote.php"; Index: php4/pear/PEAR/Command/Build.php diff -u php4/pear/PEAR/Command/Build.php:1.3.4.1 php4/pear/PEAR/Command/Build.php:1.3.4.2 --- php4/pear/PEAR/Command/Build.php:1.3.4.1 Tue Nov 26 16:53:43 2002 +++ php4/pear/PEAR/Command/Build.php Thu Dec 12 21:14:23 2002 @@ -18,7 +18,7 @@ // | | // +----------------------------------------------------------------------+ // -// $Id: Build.php,v 1.3.4.1 2002/11/26 21:53:43 ssb Exp $ +// $Id: Build.php,v 1.3.4.2 2002/12/13 02:14:23 ssb Exp $ require_once "PEAR/Command/Common.php"; require_once "PEAR/Builder.php"; Index: php4/pear/PEAR/Command/Common.php diff -u php4/pear/PEAR/Command/Common.php:1.19.2.1 php4/pear/PEAR/Command/Common.php:1.19.2.2 --- php4/pear/PEAR/Command/Common.php:1.19.2.1 Mon Nov 25 18:49:46 2002 +++ php4/pear/PEAR/Command/Common.php Thu Dec 12 21:14:23 2002 @@ -16,7 +16,7 @@ // | Author: Stig Sæther Bakken <ssb@fast.no> | // +----------------------------------------------------------------------+ // -// $Id: Common.php,v 1.19.2.1 2002/11/25 23:49:46 ssb Exp $ +// $Id: Common.php,v 1.19.2.2 2002/12/13 02:14:23 ssb Exp $ require_once "PEAR.php"; Index: php4/pear/PEAR/Command/Config.php diff -u php4/pear/PEAR/Command/Config.php:1.18.4.3 php4/pear/PEAR/Command/Config.php:1.18.4.4 --- php4/pear/PEAR/Command/Config.php:1.18.4.3 Tue Nov 26 16:53:43 2002 +++ php4/pear/PEAR/Command/Config.php Thu Dec 12 21:14:23 2002 @@ -18,7 +18,7 @@ // | | // +----------------------------------------------------------------------+ // -// $Id: Config.php,v 1.18.4.3 2002/11/26 21:53:43 ssb Exp $ +// $Id: Config.php,v 1.18.4.4 2002/12/13 02:14:23 ssb Exp $ require_once "PEAR/Command/Common.php"; require_once "PEAR/Config.php"; Index: php4/pear/PEAR/Command/Install.php diff -u php4/pear/PEAR/Command/Install.php:1.38.2.2 php4/pear/PEAR/Command/Install.php:1.38.2.3 --- php4/pear/PEAR/Command/Install.php:1.38.2.2 Tue Nov 26 16:53:43 2002 +++ php4/pear/PEAR/Command/Install.php Thu Dec 12 21:14:23 2002 @@ -16,7 +16,7 @@ // | Author: Stig Sæther Bakken <ssb@fast.no> | // +----------------------------------------------------------------------+ // -// $Id: Install.php,v 1.38.2.2 2002/11/26 21:53:43 ssb Exp $ +// $Id: Install.php,v 1.38.2.3 2002/12/13 02:14:23 ssb Exp $ require_once "PEAR/Command/Common.php"; require_once "PEAR/Installer.php"; Index: php4/pear/PEAR/Command/Package.php diff -u php4/pear/PEAR/Command/Package.php:1.42.2.2 php4/pear/PEAR/Command/Package.php:1.42.2.3 --- php4/pear/PEAR/Command/Package.php:1.42.2.2 Tue Nov 26 16:53:43 2002 +++ php4/pear/PEAR/Command/Package.php Thu Dec 12 21:14:23 2002 @@ -17,7 +17,7 @@ // | Martin Jansen <mj@php.net> | // +----------------------------------------------------------------------+ // -// $Id: Package.php,v 1.42.2.2 2002/11/26 21:53:43 ssb Exp $ +// $Id: Package.php,v 1.42.2.3 2002/12/13 02:14:23 ssb Exp $ require_once 'PEAR/Common.php'; require_once 'PEAR/Command/Common.php'; Index: php4/pear/PEAR/Command/Registry.php diff -u php4/pear/PEAR/Command/Registry.php:1.24.4.3 php4/pear/PEAR/Command/Registry.php:1.24.4.4 --- php4/pear/PEAR/Command/Registry.php:1.24.4.3 Tue Nov 26 18:18:08 2002 +++ php4/pear/PEAR/Command/Registry.php Thu Dec 12 21:14:25 2002 @@ -17,7 +17,7 @@ // | | // +----------------------------------------------------------------------+ // -// $Id: Registry.php,v 1.24.4.3 2002/11/26 23:18:08 ssb Exp $ +// $Id: Registry.php,v 1.24.4.4 2002/12/13 02:14:25 ssb Exp $ require_once 'PEAR/Command/Common.php'; require_once 'PEAR/Registry.php'; Index: php4/pear/PEAR/Command/Remote.php diff -u php4/pear/PEAR/Command/Remote.php:1.22.2.2 php4/pear/PEAR/Command/Remote.php:1.22.2.3 --- php4/pear/PEAR/Command/Remote.php:1.22.2.2 Tue Nov 26 16:53:43 2002 +++ php4/pear/PEAR/Command/Remote.php Thu Dec 12 21:14:25 2002 @@ -17,7 +17,7 @@ // | | // +----------------------------------------------------------------------+ // -// $Id: Remote.php,v 1.22.2.2 2002/11/26 21:53:43 ssb Exp $ +// $Id: Remote.php,v 1.22.2.3 2002/12/13 02:14:25 ssb Exp $ require_once 'PEAR/Command/Common.php'; require_once 'PEAR/Common.php'; @@ -200,10 +200,10 @@ $data['data'][$info['category']][] = array( $name, - $info['stable'], - $installed['version'], - $desc, - $info['deps'], + @$info['stable'], + @$installed['version'], + @$desc, + @$info['deps'], ); } $this->ui->outputData($data, $command); Index: php4/pear/PEAR/Frontend/CLI.php diff -u php4/pear/PEAR/Frontend/CLI.php:1.25.2.2 php4/pear/PEAR/Frontend/CLI.php:1.25.2.3 --- php4/pear/PEAR/Frontend/CLI.php:1.25.2.2 Thu Dec 5 19:10:40 2002 +++ php4/pear/PEAR/Frontend/CLI.php Thu Dec 12 21:14:26 2002 @@ -16,7 +16,7 @@ | Author: Stig Sæther Bakken <ssb@fast.no> | +----------------------------------------------------------------------+ - $Id: CLI.php,v 1.25.2.2 2002/12/06 00:10:40 ssb Exp $ + $Id: CLI.php,v 1.25.2.3 2002/12/13 02:14:26 ssb Exp $ */ require_once "PEAR.php"; Index: php4/pear/scripts/pear.bat diff -u php4/pear/scripts/pear.bat:1.10 php4/pear/scripts/pear.bat:1.10.4.1 --- php4/pear/scripts/pear.bat:1.10 Fri Jul 26 07:58:10 2002 +++ php4/pear/scripts/pear.bat Thu Dec 12 21:14:26 2002 @@ -16,13 +16,14 @@ REM Authors: Alexander Merz (alexmerz@php.net) REM ---------------------------------------------------------------------- REM -REM $Id: pear.bat,v 1.10 2002/07/26 11:58:10 cox Exp $ +REM $Id: pear.bat,v 1.10.4.1 2002/12/13 02:14:26 ssb Exp $ REM change this lines to match the paths of your system REM ------------------- -set PHP_BIN=c:\php\php.exe -set PEAR_PATH=c:\php\pear +set PHP_BIN=@php_bin@ +set BIN_DIR=@bin_dir@ +set PEAR_PATH=@include_path@ -%PHP_BIN% -C -d output_buffer=0 -d include_path=%PEAR_PATH% -f %PEAR_PATH%\scripts\pear.in -- %1 %2 %3 %4 %5 %6 %7 %8 %9 +%PHP_BIN% -C -d output_buffer=1 -d include_path=%PEAR_PATH% -f %BIN_DIR%\pear -- %1 %2 %3 %4 %5 %6 %7 %8 %9 @ECHO ON Index: php4/pear/scripts/pear.in diff -u php4/pear/scripts/pear.in:1.64 php4/pear/scripts/pear.in:1.64.4.1 --- php4/pear/scripts/pear.in:1.64 Sun Jul 28 13:06:28 2002 +++ php4/pear/scripts/pear.in Thu Dec 12 21:14:26 2002 @@ -1,5 +1,8 @@ -#!@prefix@/bin/php -Cq -<?php // -*- PHP -*- +#!/bin/sh +PHP="@php_bin@" +test "$PHP" = '@'php_bin'@' && PHP=php +exec $PHP -C -q -d output_buffering=1 $0 $@ +<?php // // +----------------------------------------------------------------------+ // | PHP Version 4 | @@ -19,8 +22,9 @@ // | | // +----------------------------------------------------------------------+ // -// $Id: pear.in,v 1.64 2002/07/28 17:06:28 tal Exp $ +// $Id: pear.in,v 1.64.4.1 2002/12/13 02:14:26 ssb Exp $ +ob_end_clean(); /** * @nodep Gtk */ @@ -287,6 +291,7 @@ * tab-width: 4 * c-basic-offset: 4 * indent-tabs-mode: nil + * mode: php * End: */ // vim600:syn=php Index: php4/pear/scripts/phpize.in diff -u php4/pear/scripts/phpize.in:1.6 php4/pear/scripts/phpize.in:1.6.2.1 --- php4/pear/scripts/phpize.in:1.6 Tue Oct 22 07:21:38 2002 +++ php4/pear/scripts/phpize.in Thu Dec 12 21:14:26 2002 @@ -30,9 +30,9 @@ libtoolize -f -c # dumping API NOs: -PHP_API_VERSION=`egrep '#define PHP_API_VERSION' $includedir/main/php.h|sed 's/#define PHP_API_VERSION//'` -ZEND_MODULE_API_NO=`egrep '#define ZEND_MODULE_API_NO' $includedir/Zend/zend_modules.h|sed 's/#define ZEND_MODULE_API_NO//'` -ZEND_EXTENSION_API_NO=`egrep '#define ZEND_EXTENSION_API_NO' $includedir/Zend/zend_extensions.h|sed 's/#define ZEND_EXTENSION_API_NO//'` +PHP_API_VERSION=`grep -E '#define PHP_API_VERSION' $includedir/main/php.h|sed 's/#define PHP_API_VERSION//'` +ZEND_MODULE_API_NO=`grep -E '#define ZEND_MODULE_API_NO' $includedir/Zend/zend_modules.h|sed 's/#define ZEND_MODULE_API_NO//'` +ZEND_EXTENSION_API_NO=`grep -E '#define ZEND_EXTENSION_API_NO' $includedir/Zend/zend_extensions.h|sed 's/#define ZEND_EXTENSION_API_NO//'` echo "Configuring for:" echo " PHP Api Version: "$PHP_API_VERSION
Index: php4/pear/System.php diff -u php4/pear/System.php:1.21 php4/pear/System.php:1.21.2.1 --- php4/pear/System.php:1.21 Sat Oct 12 10:17:44 2002 +++ php4/pear/System.php Thu Dec 12 21:14:22 2002 @@ -16,7 +16,7 @@ // | Authors: Tomas V.V.Cox <cox@idecnet.com> | // +----------------------------------------------------------------------+ // -// $Id: System.php,v 1.21 2002/10/12 14:17:44 ssb Exp $ +// $Id: System.php,v 1.21.2.1 2002/12/13 02:14:22 ssb Exp $ // require_once 'PEAR.php'; @@ -43,7 +43,7 @@ * * @package System * @author Tomas V.V.Cox <cox@idecnet.com> -* @version $Revision: 1.21 $ +* @version $Revision: 1.21.2.1 $ * @access public * @see http://pear.php.net/manual/ */ @@ -61,7 +61,7 @@ function _parseArgs($argv, $short_options, $long_options = null) { if (!is_array($argv) && $argv !== null) { - $argv = preg_split('/\s+/', $argv); + $argv = preg_split('/\s+/', ': '.$argv); } return Console_Getopt::getopt($argv, $short_options); } Index: php4/pear/install-pear.php diff -u php4/pear/install-pear.php:1.6.2.2 php4/pear/install-pear.php:1.6.2.3 --- php4/pear/install-pear.php:1.6.2.2 Thu Nov 14 18:26:26 2002 +++ php4/pear/install-pear.php Thu Dec 12 21:14:22 2002 @@ -1,6 +1,6 @@ <?php -/* $Id: install-pear.php,v 1.6.2.2 2002/11/14 23:26:26 ssb Exp $ */ +/* $Id: install-pear.php,v 1.6.2.3 2002/12/13 02:14:22 ssb Exp $ */ $pear_dir = dirname(__FILE__); ini_set('include_path', $pear_dir); Index: php4/pear/package-PEAR.xml diff -u php4/pear/package-PEAR.xml:1.28.2.3 php4/pear/package-PEAR.xml:1.28.2.4 --- php4/pear/package-PEAR.xml:1.28.2.3 Tue Nov 26 20:01:25 2002 +++ php4/pear/package-PEAR.xml Thu Dec 12 21:14:22 2002 @@ -31,9 +31,9 @@ </maintainer> </maintainers> <release> - <version>1.0b3-dev</version> + <version>1.0b3</version> <state>stable</state> - <date>2002-12-01</date> + <date>2002-12-13</date> <notes> * fixed "info" shortcut (conflicted with "install") </notes> @@ -72,13 +72,22 @@ </dir> <dir name="scripts"> <file baseinstalldir="/" role="script" install-as="pear" name="pear.in"> - <replace from="@prefix@/bin" to="PHP_BINDIR" type="php-const"/> + <replace from="@php_bin@" to="php_bin" type="pear-config"/> <replace from="@pear_version@" to="version" type="package-info"/> <replace from="@include_path@" to="php_dir" type="pear-config"/> </file> - <file baseinstalldir="/" role="script" platform="windows" install-as="pear.bat" name="pear.bat"></file> + <file baseinstalldir="/" role="script" platform="windows" install-as="pear.bat" name="pear.bat"> + <replace from='"@php_bin@"' to="php_bin" type="pear-config"/> + <replace from='"@include_path@"' to="php_dir" type="pear-config"/> + </file> </dir> </filelist> + <warning> +If you are upgrading to 1.0b3 or newer from 1.0b2 or older, your "pear" +command will probably stop working. To fix, either use go-pear, +or edit the first line of your installed "pear" and replace "@php_bin@" +with the path to your PHP CLI or CGI binary. +</warning> <deps> <dep type="php" rel="ge" version="4.1"/> <dep type="pkg" rel="ge" version="0.4">Archive_Tar</dep> Index: php4/pear/package.dtd diff -u php4/pear/package.dtd:1.27.4.1 php4/pear/package.dtd:1.27.4.2 --- php4/pear/package.dtd:1.27.4.1 Tue Nov 26 20:01:25 2002 +++ php4/pear/package.dtd Thu Dec 12 21:14:22 2002 @@ -1,5 +1,5 @@ <!-- - $Id: package.dtd,v 1.27.4.1 2002/11/27 01:01:25 ssb Exp $ + $Id: package.dtd,v 1.27.4.2 2002/12/13 02:14:22 ssb Exp $ This is the PEAR package description, version 1.0b9. It should be used with the informal public identifier: Index: php4/pear/OS/Guess.php diff -u php4/pear/OS/Guess.php:1.3.6.1 php4/pear/OS/Guess.php:1.3.6.2 --- php4/pear/OS/Guess.php:1.3.6.1 Thu Nov 14 18:26:26 2002 +++ php4/pear/OS/Guess.php Thu Dec 12 21:14:22 2002 @@ -17,7 +17,7 @@ // | | // +----------------------------------------------------------------------+ // -// $Id: Guess.php,v 1.3.6.1 2002/11/14 23:26:26 ssb Exp $ +// $Id: Guess.php,v 1.3.6.2 2002/12/13 02:14:22 ssb Exp $ // {{{ uname examples Index: php4/pear/PEAR/Common.php diff -u php4/pear/PEAR/Common.php:1.81.2.2 php4/pear/PEAR/Common.php:1.81.2.3 --- php4/pear/PEAR/Common.php:1.81.2.2 Tue Nov 26 20:01:25 2002 +++ php4/pear/PEAR/Common.php Thu Dec 12 21:14:22 2002 @@ -17,7 +17,7 @@ // | Tomas V.V.Cox <cox@idecnet.com> | // +----------------------------------------------------------------------+ // -// $Id: Common.php,v 1.81.2.2 2002/11/27 01:01:25 ssb Exp $ +// $Id: Common.php,v 1.81.2.3 2002/12/13 02:14:22 ssb Exp $ require_once 'PEAR.php'; require_once 'Archive/Tar.php'; Index: php4/pear/PEAR/Config.php diff -u php4/pear/PEAR/Config.php:1.35 php4/pear/PEAR/Config.php:1.35.2.1 --- php4/pear/PEAR/Config.php:1.35 Tue Oct 22 19:07:10 2002 +++ php4/pear/PEAR/Config.php Thu Dec 12 21:14:23 2002 @@ -16,7 +16,7 @@ // | Author: Stig Bakken <ssb@fast.no> | // +----------------------------------------------------------------------+ // -// $Id: Config.php,v 1.35 2002/10/22 23:07:10 ssb Exp $ +// $Id: Config.php,v 1.35.2.1 2002/12/13 02:14:23 ssb Exp $ require_once 'PEAR.php'; require_once 'System.php'; @@ -27,60 +27,154 @@ */ $GLOBALS['_PEAR_Config_instance'] = null; -// in case a --without-pear PHP installation is used -if (!defined('PEAR_INSTALL_DIR')) { - define('PEAR_INSTALL_DIR', PHP_LIBDIR); -} -if (!defined('PEAR_EXTENSION_DIR')) { - define('PEAR_EXTENSION_DIR', PHP_EXTENSION_DIR); -} - -define('PEAR_CONFIG_DEFAULT_BINDIR', - PHP_BINDIR); -define('PEAR_CONFIG_DEFAULT_DOCDIR', - PEAR_INSTALL_DIR.DIRECTORY_SEPARATOR.'docs'); -if (@is_dir(PEAR_INSTALL_DIR.DIRECTORY_SEPARATOR.'lib')) { - define('PEAR_CONFIG_DEFAULT_PHPDIR', - PEAR_INSTALL_DIR.DIRECTORY_SEPARATOR.'lib'); -} else { - define('PEAR_CONFIG_DEFAULT_PHPDIR', - PEAR_INSTALL_DIR); -} -define('PEAR_CONFIG_DEFAULT_DATADIR', - PEAR_INSTALL_DIR.DIRECTORY_SEPARATOR.'data'); -define('PEAR_CONFIG_DEFAULT_TESTDIR', - PEAR_INSTALL_DIR.DIRECTORY_SEPARATOR.'tests'); +// Below we define constants with default values for all configuration +// parameters except username/password. All of them can have their +// defaults set through environment variables. The reason we use the +// PHP_ prefix is for some security, PHP protects environment +// variables starting with PHP_*. + +if (isset($_ENV['PHP_PEAR_SYSCONF_DIR'])) { + define('PEAR_CONFIG_SYSCONFDIR', $_ENV['PHP_PEAR_SYSCONF_DIR']); +} elseif (isset($_ENV['SystemRoot'])) { + define('PEAR_CONFIG_SYSCONFDIR', $_ENV['SystemRoot']); +} elseif (@is_dir(PHP_SYSCONFDIR)) { + define('PEAR_CONFIG_SYSCONFDIR', PHP_SYSCONFDIR); +} -define('PEAR_CONFIG_DEFAULT_CACHEDIR', - System::tmpdir() . DIRECTORY_SEPARATOR . 'pear' . DIRECTORY_SEPARATOR . 'cache'); +// Default for master_server +if (isset($_ENV['PHP_PEAR_MASTER_SERVER'])) { + define('PEAR_CONFIG_DEFAULT_MASTER_SERVER', $_ENV['PHP_PEAR_MASTER_SERVER']); +} else { + define('PEAR_CONFIG_DEFAULT_MASTER_SERVER', 'pear.php.net'); +} -if (@is_dir(PHP_SYSCONFDIR)) { - define('PEAR_CONFIG_SYSCONFDIR', PHP_SYSCONFDIR); +// Default for http_proxy +if (isset($_ENV['PHP_PEAR_HTTP_PROXY'])) { + define('PEAR_CONFIG_DEFAULT_HTTP_PROXY', $_ENV['PHP_PEAR_HTTP_PROXY']); +} elseif (isset($_ENV['http_proxy'])) { + define('PEAR_CONFIG_DEFAULT_HTTP_PROXY', $_ENV['http_proxy']); } else { - // real bootstrapping nightmare - if (OS_WINDOWS) { - if (@is_dir(PHP_CONFIG_FILE_PATH)) { - define('PEAR_CONFIG_SYSCONFDIR', PHP_CONFIG_FILE_PATH); - } elseif (@is_dir('c:\winnt') && @file_exists('c:\winnt\php.ini')) { - define('PEAR_CONFIG_SYSCONFDIR', 'c:\winnt'); - } elseif (@is_dir('c:\windows') && @file_exists('c:\windows\php.ini')) { - define('PEAR_CONFIG_SYSCONFDIR', 'c:\windows'); - } - } - if (!defined('PEAR_CONFIG_SYSCONFDIR')) { - define('PEAR_CONFIG_SYSCONFDIR', PHP_SYSCONFDIR); + define('PEAR_CONFIG_DEFAULT_HTTP_PROXY', ''); +} + +// Default for php_dir +if (isset($_ENV['PHP_PEAR_INSTALL_DIR'])) { + define('PEAR_CONFIG_DEFAULT_PHP_DIR', $_ENV['PHP_PEAR_INSTALL_DIR']); +} else { + if (@is_dir(PEAR_INSTALL_DIR.DIRECTORY_SEPARATOR.'lib')) { + define('PEAR_CONFIG_DEFAULT_PHP_DIR', + PEAR_INSTALL_DIR.DIRECTORY_SEPARATOR.'lib'); + } else { + define('PEAR_CONFIG_DEFAULT_PHP_DIR', PEAR_INSTALL_DIR); } } -define('PEAR_DEFAULT_UMASK', umask()); -if (OS_WINDOWS) { - define('PEAR_DEFAULT_GPG_BIN', System::which('gpg', 'c:\gnupg\gpg.exe')); +// Default for ext_dir +if (isset($_ENV['PHP_PEAR_EXTENSION_DIR'])) { + define('PEAR_CONFIG_DEFAULT_EXT_DIR', $_ENV['PHP_PEAR_EXTENSION_DIR']); +} else { + define('PEAR_CONFIG_DEFAULT_EXT_DIR', ini_get('extension_dir')); +} + +// Default for doc_dir +if (isset($_ENV['PHP_PEAR_DOC_DIR'])) { + define('PEAR_CONFIG_DEFAULT_DOC_DIR', $_ENV['PHP_PEAR_DOC_DIR']); +} else { + define('PEAR_CONFIG_DEFAULT_DOC_DIR', + PEAR_INSTALL_DIR.DIRECTORY_SEPARATOR.'docs'); +} + +// Default for bin_dir +if (isset($_ENV['PHP_PEAR_BIN_DIR'])) { + define('PEAR_CONFIG_DEFAULT_BIN_DIR', $_ENV['PHP_PEAR_BIN_DIR']); +} else { + define('PEAR_CONFIG_DEFAULT_BIN_DIR', PHP_BINDIR); +} + +// Default for data_dir +if (isset($_ENV['PHP_PEAR_DATA_DIR'])) { + define('PEAR_CONFIG_DEFAULT_DATA_DIR', $_ENV['PHP_PEAR_DATA_DIR']); +} else { + define('PEAR_CONFIG_DEFAULT_DATA_DIR', + PEAR_INSTALL_DIR.DIRECTORY_SEPARATOR.'data'); +} + +// Default for test_dir +if (isset($_ENV['PHP_PEAR_TEST_DIR'])) { + define('PEAR_CONFIG_DEFAULT_TEST_DIR', $_ENV['PHP_PEAR_TEST_DIR']); +} else { + define('PEAR_CONFIG_DEFAULT_TEST_DIR', + PEAR_INSTALL_DIR.DIRECTORY_SEPARATOR.'tests'); +} + +// Default for cache_dir +if (isset($_ENV['PHP_PEAR_CACHE_DIR'])) { + define('PEAR_CONFIG_DEFAULT_CACHE_DIR', $_ENV['PHP_PEAR_CACHE_DIR']); +} else { + define('PEAR_CONFIG_DEFAULT_CACHE_DIR', + System::tmpdir() . DIRECTORY_SEPARATOR . 'pear' . + DIRECTORY_SEPARATOR . 'cache'); +} + +// Default for php_bin +if (isset($_ENV['PHP_PEAR_PHP_BIN'])) { + define('PEAR_CONFIG_DEFAULT_PHP_BIN', $_ENV['PHP_PEAR_PHP_BIN']); +} else { + define('PEAR_CONFIG_DEFAULT_PHP_BIN', PEAR_CONFIG_DEFAULT_BIN_DIR. + DIRECTORY_SEPARATOR.'php'.(OS_WINDOWS ? '.exe' : '')); +} + +// Default for verbose +if (isset($_ENV['PHP_PEAR_VERBOSE'])) { + define('PEAR_CONFIG_DEFAULT_VERBOSE', $_ENV['PHP_PEAR_VERBOSE']); +} else { + define('PEAR_CONFIG_DEFAULT_VERBOSE', 1); +} + +// Default for preferred_state +if (isset($_ENV['PHP_PEAR_PREFERRED_STATE'])) { + define('PEAR_CONFIG_DEFAULT_PREFERRED_STATE', $_ENV['PHP_PEAR_PREFERRED_STATE']); +} else { + define('PEAR_CONFIG_DEFAULT_PREFERRED_STATE', 'stable'); +} + +// Default for umask +if (isset($_ENV['PHP_PEAR_UMASK'])) { + define('PEAR_CONFIG_DEFAULT_UMASK', $_ENV['PHP_PEAR_UMASK']); +} else { + define('PEAR_CONFIG_DEFAULT_UMASK', umask()); +} + +// Default for cache_ttl +if (isset($_ENV['PHP_PEAR_CACHE_TTL'])) { + define('PEAR_CONFIG_DEFAULT_CACHE_TTL', $_ENV['PHP_PEAR_CACHE_TTL']); +} else { + define('PEAR_CONFIG_DEFAULT_CACHE_TTL', 0); +} + +// Default for sig_type +if (isset($_ENV['PHP_PEAR_SIG_TYPE'])) { + define('PEAR_CONFIG_DEFAULT_SIG_TYPE', $_ENV['PHP_PEAR_SIG_TYPE']); } else { - define('PEAR_DEFAULT_GPG_BIN', System::which('gpg', '/usr/local/bin/gpg')); + define('PEAR_CONFIG_DEFAULT_SIG_TYPE', 'gpg'); } -define('PEAR_DEFAULT_SIG_KEYDIR', - PEAR_CONFIG_SYSCONFDIR . DIRECTORY_SEPARATOR . 'pearkeys'); +// Default for sig_bin +if (isset($_ENV['PHP_PEAR_SIG_BIN'])) { + define('PEAR_CONFIG_DEFAULT_SIG_BIN', $_ENV['PHP_PEAR_SIG_BIN']); +} else { + define('PEAR_CONFIG_DEFAULT_SIG_BIN', + System::which( + 'gpg', OS_WINDOWS ? 'c:\gnupg\gpg.exe' : '/usr/local/bin/gpg')); +} + +// Default for sig_keydir +if (isset($_ENV['PHP_PEAR_SIG_KEYDIR'])) { + define('PEAR_CONFIG_DEFAULT_SIG_KEYDIR', $_ENV['PHP_PEAR_SIG_KEYDIR']); +} else { + define('PEAR_CONFIG_DEFAULT_SIG_KEYDIR', + PEAR_CONFIG_SYSCONFDIR . DIRECTORY_SEPARATOR . 'pearkeys'); +} /** * This is a class for storing configuration data, keeping track of @@ -138,7 +232,7 @@ ), 'http_proxy' => array( 'type' => 'string', - 'default' => '', + 'default' => PEAR_CONFIG_DEFAULT_HTTP_PROXY, 'doc' => 'HTTP proxy (host:port) to use when downloading packages', 'prompt' => 'HTTP Proxy Server Address', 'group' => 'Internet Access', @@ -146,53 +240,60 @@ // File Locations 'php_dir' => array( 'type' => 'directory', - 'default' => PEAR_CONFIG_DEFAULT_PHPDIR, + 'default' => PEAR_CONFIG_DEFAULT_PHP_DIR, 'doc' => 'directory where .php files are installed', 'prompt' => 'PEAR directory', 'group' => 'File Locations', ), 'ext_dir' => array( 'type' => 'directory', - 'default' => PEAR_EXTENSION_DIR, + 'default' => PEAR_CONFIG_DEFAULT_EXT_DIR, 'doc' => 'directory where loadable extensions are installed', 'prompt' => 'PHP extension directory', 'group' => 'File Locations', ), 'doc_dir' => array( 'type' => 'directory', - 'default' => PEAR_CONFIG_DEFAULT_DOCDIR, + 'default' => PEAR_CONFIG_DEFAULT_DOC_DIR, 'doc' => 'directory where documentation is installed', 'prompt' => 'PEAR documentation directory', 'group' => 'File Locations', ), 'bin_dir' => array( 'type' => 'directory', - 'default' => PEAR_CONFIG_DEFAULT_BINDIR, + 'default' => PEAR_CONFIG_DEFAULT_BIN_DIR, 'doc' => 'directory where executables are installed', 'prompt' => 'PEAR executables directory', 'group' => 'File Locations', ), 'data_dir' => array( 'type' => 'directory', - 'default' => PEAR_CONFIG_DEFAULT_DATADIR, + 'default' => PEAR_CONFIG_DEFAULT_DATA_DIR, 'doc' => 'directory where data files are installed', 'prompt' => 'PEAR data directory', 'group' => 'File Locations (Advanced)', ), 'test_dir' => array( 'type' => 'directory', - 'default' => PEAR_CONFIG_DEFAULT_TESTDIR, + 'default' => PEAR_CONFIG_DEFAULT_TEST_DIR, 'doc' => 'directory where regression tests are installed', 'prompt' => 'PEAR test directory', 'group' => 'File Locations (Advanced)', ), 'cache_dir' => array( 'type' => 'directory', - 'default' => PEAR_CONFIG_DEFAULT_CACHEDIR, + 'default' => PEAR_CONFIG_DEFAULT_CACHE_DIR, 'doc' => 'directory which is used for XMLRPC cache', 'prompt' => 'PEAR Installer cache directory', 'group' => 'File Locations (Advanced)', ), + 'php_bin' => array( + 'type' => 'file', + 'default' => PEAR_CONFIG_DEFAULT_PHP_BIN, + 'doc' => 'PHP CLI/CGI binary for executing scripts', + 'prompt' => 'PHP CLI/CGI binary', + 'group' => 'File Locations (Advanced)', + ), // Maintainers 'username' => array( 'type' => 'string', @@ -211,7 +312,7 @@ // Advanced 'verbose' => array( 'type' => 'integer', - 'default' => 1, + 'default' => PEAR_CONFIG_DEFAULT_VERBOSE, 'doc' => 'verbosity level 0: really quiet 1: somewhat quiet @@ -222,7 +323,7 @@ ), 'preferred_state' => array( 'type' => 'set', - 'default' => 'stable', + 'default' => PEAR_CONFIG_DEFAULT_PREFERRED_STATE, 'doc' => 'the installer will prefer releases with this state when installing packages without a version or state specified', 'valid_set' => array( 'stable', 'beta', 'alpha', 'devel', 'snapshot'), @@ -231,21 +332,21 @@ ), 'umask' => array( 'type' => 'mask', - 'default' => PEAR_DEFAULT_UMASK, + 'default' => PEAR_CONFIG_DEFAULT_UMASK, 'doc' => 'umask used when creating files (Unix-like systems only)', 'prompt' => 'Unix file mask', 'group' => 'Advanced', ), 'cache_ttl' => array( 'type' => 'integer', - 'default' => 0, + 'default' => PEAR_CONFIG_DEFAULT_CACHE_TTL, 'doc' => 'amount of secs where the local cache is used and not updated', 'prompt' => 'Cache TimeToLive', 'group' => 'Advanced', ), 'sig_type' => array( 'type' => 'set', - 'default' => 'gpg', + 'default' => PEAR_CONFIG_DEFAULT_SIG_TYPE, 'doc' => 'which package signature mechanism to use', 'valid_set' => array('gpg'), 'prompt' => 'Package Signature Type', @@ -253,26 +354,25 @@ ), 'sig_bin' => array( 'type' => 'string', - 'default' => PEAR_DEFAULT_GPG_BIN, + 'default' => PEAR_CONFIG_DEFAULT_SIG_BIN, 'doc' => 'which package signature mechanism to use', 'prompt' => 'Signature Handling Program', 'group' => 'Maintainers', ), + 'sig_keyid' => array( + 'type' => 'string', + 'default' => '', + 'doc' => 'which key to use for signing with', + 'prompt' => 'Signature Key Id', + 'group' => 'Maintainers', + ), 'sig_keydir' => array( 'type' => 'string', - 'default' => PEAR_DEFAULT_SIG_KEYDIR, + 'default' => PEAR_CONFIG_DEFAULT_SIG_KEYDIR, 'doc' => 'which package signature mechanism to use', 'prompt' => 'Signature Key Directory', 'group' => 'Maintainers', ), -/* - 'testset1' => array( - 'type' => 'set', - 'default' => 'foo', - 'doc' => 'test set', - 'valid_set' => array('foo', 'bar'), - ), -*/ ); // }}} Index: php4/pear/PEAR/Dependency.php diff -u php4/pear/PEAR/Dependency.php:1.14.4.1 php4/pear/PEAR/Dependency.php:1.14.4.2 --- php4/pear/PEAR/Dependency.php:1.14.4.1 Thu Nov 14 18:26:27 2002 +++ php4/pear/PEAR/Dependency.php Thu Dec 12 21:14:23 2002 @@ -17,7 +17,7 @@ // | Stig Bakken <ssb@fast.no> | // +----------------------------------------------------------------------+ // -// $Id: Dependency.php,v 1.14.4.1 2002/11/14 23:26:27 ssb Exp $ +// $Id: Dependency.php,v 1.14.4.2 2002/12/13 02:14:23 ssb Exp $ /** * Methods for dependencies check. Based on Stig's dependencies RFC Index: php4/pear/PEAR/Installer.php diff -u php4/pear/PEAR/Installer.php:1.81.2.2 php4/pear/PEAR/Installer.php:1.81.2.3 --- php4/pear/PEAR/Installer.php:1.81.2.2 Mon Nov 25 20:33:37 2002 +++ php4/pear/PEAR/Installer.php Thu Dec 12 21:14:23 2002 @@ -17,7 +17,7 @@ // | Tomas V.V.Cox <cox@idecnet.com> | // +----------------------------------------------------------------------+ // -// $Id: Installer.php,v 1.81.2.2 2002/11/26 01:33:37 ssb Exp $ +// $Id: Installer.php,v 1.81.2.3 2002/12/13 02:14:23 ssb Exp $ require_once 'PEAR/Common.php'; require_once 'PEAR/Registry.php'; Index: php4/pear/PEAR/Remote.php diff -u php4/pear/PEAR/Remote.php:1.34.2.1 php4/pear/PEAR/Remote.php:1.34.2.2 --- php4/pear/PEAR/Remote.php:1.34.2.1 Mon Nov 25 18:49:46 2002 +++ php4/pear/PEAR/Remote.php Thu Dec 12 21:14:23 2002 @@ -16,7 +16,7 @@ // | Author: Stig Bakken <ssb@fast.no> | // +----------------------------------------------------------------------+ // -// $Id: Remote.php,v 1.34.2.1 2002/11/25 23:49:46 ssb Exp $ +// $Id: Remote.php,v 1.34.2.2 2002/12/13 02:14:23 ssb Exp $ require_once 'PEAR.php'; require_once 'PEAR/Config.php'; Index: php4/pear/PEAR/Command/Auth.php diff -u php4/pear/PEAR/Command/Auth.php:1.10.4.1 php4/pear/PEAR/Command/Auth.php:1.10.4.2 --- php4/pear/PEAR/Command/Auth.php:1.10.4.1 Tue Nov 26 16:53:43 2002 +++ php4/pear/PEAR/Command/Auth.php Thu Dec 12 21:14:23 2002 @@ -16,7 +16,7 @@ // | Author: Stig Bakken <ssb@fast.no> | // +----------------------------------------------------------------------+ // -// $Id: Auth.php,v 1.10.4.1 2002/11/26 21:53:43 ssb Exp $ +// $Id: Auth.php,v 1.10.4.2 2002/12/13 02:14:23 ssb Exp $ require_once "PEAR/Command/Common.php"; require_once "PEAR/Remote.php"; Index: php4/pear/PEAR/Command/Build.php diff -u php4/pear/PEAR/Command/Build.php:1.3.4.1 php4/pear/PEAR/Command/Build.php:1.3.4.2 --- php4/pear/PEAR/Command/Build.php:1.3.4.1 Tue Nov 26 16:53:43 2002 +++ php4/pear/PEAR/Command/Build.php Thu Dec 12 21:14:23 2002 @@ -18,7 +18,7 @@ // | | // +----------------------------------------------------------------------+ // -// $Id: Build.php,v 1.3.4.1 2002/11/26 21:53:43 ssb Exp $ +// $Id: Build.php,v 1.3.4.2 2002/12/13 02:14:23 ssb Exp $ require_once "PEAR/Command/Common.php"; require_once "PEAR/Builder.php"; Index: php4/pear/PEAR/Command/Common.php diff -u php4/pear/PEAR/Command/Common.php:1.19.2.1 php4/pear/PEAR/Command/Common.php:1.19.2.2 --- php4/pear/PEAR/Command/Common.php:1.19.2.1 Mon Nov 25 18:49:46 2002 +++ php4/pear/PEAR/Command/Common.php Thu Dec 12 21:14:23 2002 @@ -16,7 +16,7 @@ // | Author: Stig Sæther Bakken <ssb@fast.no> | // +----------------------------------------------------------------------+ // -// $Id: Common.php,v 1.19.2.1 2002/11/25 23:49:46 ssb Exp $ +// $Id: Common.php,v 1.19.2.2 2002/12/13 02:14:23 ssb Exp $ require_once "PEAR.php"; Index: php4/pear/PEAR/Command/Config.php diff -u php4/pear/PEAR/Command/Config.php:1.18.4.3 php4/pear/PEAR/Command/Config.php:1.18.4.4 --- php4/pear/PEAR/Command/Config.php:1.18.4.3 Tue Nov 26 16:53:43 2002 +++ php4/pear/PEAR/Command/Config.php Thu Dec 12 21:14:23 2002 @@ -18,7 +18,7 @@ // | | // +----------------------------------------------------------------------+ // -// $Id: Config.php,v 1.18.4.3 2002/11/26 21:53:43 ssb Exp $ +// $Id: Config.php,v 1.18.4.4 2002/12/13 02:14:23 ssb Exp $ require_once "PEAR/Command/Common.php"; require_once "PEAR/Config.php"; Index: php4/pear/PEAR/Command/Install.php diff -u php4/pear/PEAR/Command/Install.php:1.38.2.2 php4/pear/PEAR/Command/Install.php:1.38.2.3 --- php4/pear/PEAR/Command/Install.php:1.38.2.2 Tue Nov 26 16:53:43 2002 +++ php4/pear/PEAR/Command/Install.php Thu Dec 12 21:14:23 2002 @@ -16,7 +16,7 @@ // | Author: Stig Sæther Bakken <ssb@fast.no> | // +----------------------------------------------------------------------+ // -// $Id: Install.php,v 1.38.2.2 2002/11/26 21:53:43 ssb Exp $ +// $Id: Install.php,v 1.38.2.3 2002/12/13 02:14:23 ssb Exp $ require_once "PEAR/Command/Common.php"; require_once "PEAR/Installer.php"; Index: php4/pear/PEAR/Command/Package.php diff -u php4/pear/PEAR/Command/Package.php:1.42.2.2 php4/pear/PEAR/Command/Package.php:1.42.2.3 --- php4/pear/PEAR/Command/Package.php:1.42.2.2 Tue Nov 26 16:53:43 2002 +++ php4/pear/PEAR/Command/Package.php Thu Dec 12 21:14:23 2002 @@ -17,7 +17,7 @@ // | Martin Jansen <mj@php.net> | // +----------------------------------------------------------------------+ // -// $Id: Package.php,v 1.42.2.2 2002/11/26 21:53:43 ssb Exp $ +// $Id: Package.php,v 1.42.2.3 2002/12/13 02:14:23 ssb Exp $ require_once 'PEAR/Common.php'; require_once 'PEAR/Command/Common.php'; Index: php4/pear/PEAR/Command/Registry.php diff -u php4/pear/PEAR/Command/Registry.php:1.24.4.3 php4/pear/PEAR/Command/Registry.php:1.24.4.4 --- php4/pear/PEAR/Command/Registry.php:1.24.4.3 Tue Nov 26 18:18:08 2002 +++ php4/pear/PEAR/Command/Registry.php Thu Dec 12 21:14:25 2002 @@ -17,7 +17,7 @@ // | | // +----------------------------------------------------------------------+ // -// $Id: Registry.php,v 1.24.4.3 2002/11/26 23:18:08 ssb Exp $ +// $Id: Registry.php,v 1.24.4.4 2002/12/13 02:14:25 ssb Exp $ require_once 'PEAR/Command/Common.php'; require_once 'PEAR/Registry.php'; Index: php4/pear/PEAR/Command/Remote.php diff -u php4/pear/PEAR/Command/Remote.php:1.22.2.2 php4/pear/PEAR/Command/Remote.php:1.22.2.3 --- php4/pear/PEAR/Command/Remote.php:1.22.2.2 Tue Nov 26 16:53:43 2002 +++ php4/pear/PEAR/Command/Remote.php Thu Dec 12 21:14:25 2002 @@ -17,7 +17,7 @@ // | | // +----------------------------------------------------------------------+ // -// $Id: Remote.php,v 1.22.2.2 2002/11/26 21:53:43 ssb Exp $ +// $Id: Remote.php,v 1.22.2.3 2002/12/13 02:14:25 ssb Exp $ require_once 'PEAR/Command/Common.php'; require_once 'PEAR/Common.php'; @@ -200,10 +200,10 @@ $data['data'][$info['category']][] = array( $name, - $info['stable'], - $installed['version'], - $desc, - $info['deps'], + @$info['stable'], + @$installed['version'], + @$desc, + @$info['deps'], ); } $this->ui->outputData($data, $command); Index: php4/pear/PEAR/Frontend/CLI.php diff -u php4/pear/PEAR/Frontend/CLI.php:1.25.2.2 php4/pear/PEAR/Frontend/CLI.php:1.25.2.3 --- php4/pear/PEAR/Frontend/CLI.php:1.25.2.2 Thu Dec 5 19:10:40 2002 +++ php4/pear/PEAR/Frontend/CLI.php Thu Dec 12 21:14:26 2002 @@ -16,7 +16,7 @@ | Author: Stig Sæther Bakken <ssb@fast.no> | +----------------------------------------------------------------------+ - $Id: CLI.php,v 1.25.2.2 2002/12/06 00:10:40 ssb Exp $ + $Id: CLI.php,v 1.25.2.3 2002/12/13 02:14:26 ssb Exp $ */ require_once "PEAR.php"; Index: php4/pear/scripts/pear.bat diff -u php4/pear/scripts/pear.bat:1.10 php4/pear/scripts/pear.bat:1.10.4.1 --- php4/pear/scripts/pear.bat:1.10 Fri Jul 26 07:58:10 2002 +++ php4/pear/scripts/pear.bat Thu Dec 12 21:14:26 2002 @@ -16,13 +16,14 @@ REM Authors: Alexander Merz (alexmerz@php.net) REM ---------------------------------------------------------------------- REM -REM $Id: pear.bat,v 1.10 2002/07/26 11:58:10 cox Exp $ +REM $Id: pear.bat,v 1.10.4.1 2002/12/13 02:14:26 ssb Exp $ REM change this lines to match the paths of your system REM ------------------- -set PHP_BIN=c:\php\php.exe -set PEAR_PATH=c:\php\pear +set PHP_BIN=@php_bin@ +set BIN_DIR=@bin_dir@ +set PEAR_PATH=@include_path@ -%PHP_BIN% -C -d output_buffer=0 -d include_path=%PEAR_PATH% -f %PEAR_PATH%\scripts\pear.in -- %1 %2 %3 %4 %5 %6 %7 %8 %9 +%PHP_BIN% -C -d output_buffer=1 -d include_path=%PEAR_PATH% -f %BIN_DIR%\pear -- %1 %2 %3 %4 %5 %6 %7 %8 %9 @ECHO ON Index: php4/pear/scripts/pear.in diff -u php4/pear/scripts/pear.in:1.64 php4/pear/scripts/pear.in:1.64.4.1 --- php4/pear/scripts/pear.in:1.64 Sun Jul 28 13:06:28 2002 +++ php4/pear/scripts/pear.in Thu Dec 12 21:14:26 2002 @@ -1,5 +1,8 @@ -#!@prefix@/bin/php -Cq -<?php // -*- PHP -*- +#!/bin/sh +PHP="@php_bin@" +test "$PHP" = '@'php_bin'@' && PHP=php +exec $PHP -C -q -d output_buffering=1 $0 $@ +<?php // // +----------------------------------------------------------------------+ // | PHP Version 4 | @@ -19,8 +22,9 @@ // | | // +----------------------------------------------------------------------+ // -// $Id: pear.in,v 1.64 2002/07/28 17:06:28 tal Exp $ +// $Id: pear.in,v 1.64.4.1 2002/12/13 02:14:26 ssb Exp $ +ob_end_clean(); /** * @nodep Gtk */ @@ -287,6 +291,7 @@ * tab-width: 4 * c-basic-offset: 4 * indent-tabs-mode: nil + * mode: php * End: */ // vim600:syn=php Index: php4/pear/scripts/phpize.in diff -u php4/pear/scripts/phpize.in:1.6 php4/pear/scripts/phpize.in:1.6.2.1 --- php4/pear/scripts/phpize.in:1.6 Tue Oct 22 07:21:38 2002 +++ php4/pear/scripts/phpize.in Thu Dec 12 21:14:26 2002 @@ -30,9 +30,9 @@ libtoolize -f -c # dumping API NOs: -PHP_API_VERSION=`egrep '#define PHP_API_VERSION' $includedir/main/php.h|sed 's/#define PHP_API_VERSION//'` -ZEND_MODULE_API_NO=`egrep '#define ZEND_MODULE_API_NO' $includedir/Zend/zend_modules.h|sed 's/#define ZEND_MODULE_API_NO//'` -ZEND_EXTENSION_API_NO=`egrep '#define ZEND_EXTENSION_API_NO' $includedir/Zend/zend_extensions.h|sed 's/#define ZEND_EXTENSION_API_NO//'` +PHP_API_VERSION=`grep -E '#define PHP_API_VERSION' $includedir/main/php.h|sed 's/#define PHP_API_VERSION//'` +ZEND_MODULE_API_NO=`grep -E '#define ZEND_MODULE_API_NO' $includedir/Zend/zend_modules.h|sed 's/#define ZEND_MODULE_API_NO//'` +ZEND_EXTENSION_API_NO=`grep -E '#define ZEND_EXTENSION_API_NO' $includedir/Zend/zend_extensions.h|sed 's/#define ZEND_EXTENSION_API_NO//'` echo "Configuring for:" echo " PHP Api Version: "$PHP_API_VERSION