cvs: php-src(PHP_4_3) /pear CMD.php CODING_STANDARDS PEAR.php System.php install-pear.php package-Console_Getopt.xml package-PEAR.xml package.dtd

From: Date: Sun, 25 Jan 2004 23:42:44 +0000
Subject: cvs: php-src(PHP_4_3) /pear CMD.php CODING_STANDARDS PEAR.php System.php install-pear.php package-Console_Getopt.xml package-PEAR.xml package.dtd
Groups: php.pear.cvs php.pear.core 
Request: Send a blank email to pear-core+get-71@lists.php.net to get a copy of this message
pajoye Sun Jan 25 18:42:44 2004 EDT Modified files: (Branch: PHP_4_3) /php-src/pear CMD.php CODING_STANDARDS PEAR.php System.php install-pear.php package-Console_Getopt.xml package-PEAR.xml package.dtd Log: MFH

http://cvs.php.net/diff.php/php-src/pear/CMD.php?r1=1.4.10.7&r2=1.4.10.8&ty=u Index: php-src/pear/CMD.php diff -u php-src/pear/CMD.php:1.4.10.7 php-src/pear/CMD.php:1.4.10.8 --- php-src/pear/CMD.php:1.4.10.7 Sun Jan 25 18:19:57 2004 +++ php-src/pear/CMD.php Sun Jan 25 18:42:43 2004 @@ -1,7 +1,7 @@ <?php // // +----------------------------------------------------------------------+ -// | PHP Version 4 | +// | PHP Version 5 | // +----------------------------------------------------------------------+ // | Copyright (c) 1997-2004 The PHP Group | // +----------------------------------------------------------------------+ @@ -16,7 +16,7 @@ // | Author: Anders Johannsen <anders@johannsen.com> | // +----------------------------------------------------------------------+ // -define('CMD_RCSID', '$Id: CMD.php,v 1.4.10.7 2004/01/25 23:19:57 pajoye Exp $'); +define('CMD_RCSID', '$Id: CMD.php,v 1.4.10.8 2004/01/25 23:42:43 pajoye Exp $'); /** * The Cmd:: class implements an abstraction for various ways @@ -25,7 +25,7 @@ * register_shutdown_function() or as a detached process using nohup). * * @author Anders Johannsen <anders@johannsen.com> - * @version $Revision: 1.4.10.7 $ + * @version $Revision: 1.4.10.8 $ **/ require_once 'PEAR.php'; http://cvs.php.net/diff.php/php-src/pear/CODING_STANDARDS?r1=1.14&r2=1.14.10.1&ty=u Index: php-src/pear/CODING_STANDARDS diff -u php-src/pear/CODING_STANDARDS:1.14 php-src/pear/CODING_STANDARDS:1.14.10.1 --- php-src/pear/CODING_STANDARDS:1.14 Thu Jan 24 10:02:05 2002 +++ php-src/pear/CODING_STANDARDS Sun Jan 25 18:42:43 2004 @@ -1,8 +1,8 @@ =========================================================================== -|| PEAR Coding Standards || +| PEAR Coding Standards | =========================================================================== -$Id: CODING_STANDARDS,v 1.14 2002/01/24 15:02:05 cox Exp $ +$Id: CODING_STANDARDS,v 1.14.10.1 2004/01/25 23:42:43 pajoye Exp $ This document is no longer maintained, see http://pear.php.net/manual/ instead. http://cvs.php.net/diff.php/php-src/pear/PEAR.php?r1=1.50.2.13&r2=1.50.2.14&ty=u Index: php-src/pear/PEAR.php diff -u php-src/pear/PEAR.php:1.50.2.13 php-src/pear/PEAR.php:1.50.2.14 --- php-src/pear/PEAR.php:1.50.2.13 Sun Jan 25 18:19:57 2004 +++ php-src/pear/PEAR.php Sun Jan 25 18:42:43 2004 @@ -18,7 +18,7 @@ // | Tomas V.V.Cox <cox@idecnet.com> | // +----------------------------------------------------------------------+ // -// $Id: PEAR.php,v 1.50.2.13 2004/01/25 23:19:57 pajoye Exp $ +// $Id: PEAR.php,v 1.50.2.14 2004/01/25 23:42:43 pajoye Exp $ // define('PEAR_ERROR_RETURN', 1); @@ -232,8 +232,8 @@ */ function isError($data, $code = null) { - if (is_object($data) && (get_class($data) == 'pear_error' || - is_subclass_of($data, 'pear_error'))) { + if (is_object($data) && (strtolower(get_class($data)) == 'pear_error' || + is_subclass_of($data, 'PEAR_Error'))) { if (is_null($code)) { return true; } elseif (is_string($code)) { @@ -290,7 +290,7 @@ function setErrorHandling($mode = null, $options = null) { if (isset($this) && - (get_class($this) == 'pear' || is_subclass_of($this, 'pear'))) { + (strtolower(get_class($this)) == 'pear' || is_subclass_of($this, 'PEAR'))) { $setmode = &$this->_default_error_mode; $setoptions = &$this->_default_error_options; } else { @@ -416,7 +416,7 @@ // $error_code is a non-empty array here; // we walk through it trying to unset all // values - foreach($error_code AS $key => $error) { + foreach($error_code as $key => $error) { if ($this->_checkDelExpect($error)) { $deleted = true; } else { @@ -538,7 +538,7 @@ * @param string $message * */ - function &throwError($message = null, + function throwError($message = null, $code = null, $userinfo = null) { @@ -568,7 +568,7 @@ { $stack = &$GLOBALS['_PEAR_error_handler_stack']; if (isset($this) && - (get_class($this) == 'pear' || is_subclass_of($this, 'pear'))) { + (strtolower(get_class($this)) == 'pear' || is_subclass_of($this, 'PEAR'))) { $def_mode = &$this->_default_error_mode; $def_options = &$this->_default_error_options; } else { @@ -578,7 +578,7 @@ $stack[] = array($def_mode, $def_options); if (isset($this) && - (get_class($this) == 'pear' || is_subclass_of($this, 'pear'))) { + (strtolower(get_class($this)) == 'pear' || is_subclass_of($this, 'PEAR'))) { $this->setErrorHandling($mode, $options); } else { PEAR::setErrorHandling($mode, $options); @@ -604,7 +604,7 @@ list($mode, $options) = $stack[sizeof($stack) - 1]; array_pop($stack); if (isset($this) && - (get_class($this) == 'pear' || is_subclass_of($this, 'pear'))) { + (strtolower(get_class($this)) == 'pear' || is_subclass_of($this, 'PEAR'))) { $this->setErrorHandling($mode, $options); } else { PEAR::setErrorHandling($mode, $options); http://cvs.php.net/diff.php/php-src/pear/System.php?r1=1.21.2.13&r2=1.21.2.14&ty=u Index: php-src/pear/System.php diff -u php-src/pear/System.php:1.21.2.13 php-src/pear/System.php:1.21.2.14 --- php-src/pear/System.php:1.21.2.13 Sun Jan 25 18:19:57 2004 +++ php-src/pear/System.php Sun Jan 25 18:42:43 2004 @@ -1,7 +1,7 @@ <?php // // +----------------------------------------------------------------------+ -// | PHP Version 4 | +// | PHP Version 5 | // +----------------------------------------------------------------------+ // | Copyright (c) 1997-2004 The PHP Group | // +----------------------------------------------------------------------+ @@ -16,7 +16,7 @@ // | Authors: Tomas V.V.Cox <cox@idecnet.com> | // +----------------------------------------------------------------------+ // -// $Id: System.php,v 1.21.2.13 2004/01/25 23:19:57 pajoye Exp $ +// $Id: System.php,v 1.21.2.14 2004/01/25 23:42:43 pajoye Exp $ // require_once 'PEAR.php'; @@ -48,7 +48,7 @@ * * @package System * @author Tomas V.V.Cox <cox@idecnet.com> -* @version $Revision: 1.21.2.13 $ +* @version $Revision: 1.21.2.14 $ * @access public * @see http://pear.php.net/manual/ */ @@ -68,7 +68,7 @@ if (!is_array($argv) && $argv !== null) { $argv = preg_split('/\s+/', $argv); } - return Console_Getopt::getopt($argv, $short_options); + return Console_Getopt::getopt2($argv, $short_options); } /** @@ -226,6 +226,14 @@ if ($opt[0] == 'p') { $create_parents = true; } elseif($opt[0] == 'm') { + // if the mode is clearly an octal number (starts with 0) + // convert it to decimal + if (strlen($opt[1]) && $opt[1]{0} == '0') { + $opt[1] = octdec($opt[1]); + } else { + // convert to int + $opt[1] += 0; + } $mode = $opt[1]; } } http://cvs.php.net/diff.php/php-src/pear/install-pear.php?r1=1.6.2.12&r2=1.6.2.13&ty=u Index: php-src/pear/install-pear.php diff -u php-src/pear/install-pear.php:1.6.2.12 php-src/pear/install-pear.php:1.6.2.13 --- php-src/pear/install-pear.php:1.6.2.12 Mon Oct 20 11:51:43 2003 +++ php-src/pear/install-pear.php Sun Jan 25 18:42:43 2004 @@ -1,6 +1,6 @@ <?php -/* $Id: install-pear.php,v 1.6.2.12 2003/10/20 15:51:43 cox Exp $ */ +/* $Id: install-pear.php,v 1.6.2.13 2004/01/25 23:42:43 pajoye Exp $ */ $pear_dir = dirname(__FILE__); ini_set('include_path', $pear_dir); http://cvs.php.net/diff.php/php-src/pear/package-Console_Getopt.xml?r1=1.7.2.3&r2=1.7.2.4&ty=u Index: php-src/pear/package-Console_Getopt.xml diff -u php-src/pear/package-Console_Getopt.xml:1.7.2.3 php-src/pear/package-Console_Getopt.xml:1.7.2.4 --- php-src/pear/package-Console_Getopt.xml:1.7.2.3 Thu Dec 11 14:28:24 2003 +++ php-src/pear/package-Console_Getopt.xml Sun Jan 25 18:42:43 2004 @@ -21,6 +21,12 @@ <name>Stig Bakken</name> <email>stig@php.net</email> </maintainer> + <maintainer> + <user>cellog</user> + <role>helper</role> + <name>Greg Beaver</name> + <email>cellog@php.net</email> + </maintainer> </maintainers> <release> <version>1.2</version> @@ -28,9 +34,9 @@ <notes>Fix to preserve BC with 1.0 and allow correct behaviour for new users</notes> <state>stable</state> <filelist> - <dir name="Console"> - <file role="php" name="Getopt.php"/> - </dir> + <dir name="Console"> + <file role="php" name="Getopt.php"/> + </dir> </filelist> </release> <changelog> @@ -46,29 +52,29 @@ </filelist> </release> <release> - <version>0.11</version> - <date>2002-05-26</date> - <notes>POSIX getopt compatibility fix: treat first element of args - array as command name - </notes> - <state>beta</state> - <filelist> - <dir name="Console"> - <file role="php" name="Getopt.php"/> - </dir> - </filelist> - </release> - <release> - <version>0.10</version> - <date>2002-05-12</date> - <notes>Packaging fix</notes> - <state>beta</state> - </release> - <release> - <version>0.9</version> - <date>2002-05-12</date> - <notes>Initial release</notes> - <state>beta</state> - </release> + <version>0.11</version> + <date>2002-05-26</date> + <notes>POSIX getopt compatibility fix: treat first element of args + array as command name + </notes> + <state>beta</state> + <filelist> + <dir name="Console"> + <file role="php" name="Getopt.php"/> + </dir> + </filelist> + </release> + <release> + <version>0.10</version> + <date>2002-05-12</date> + <notes>Packaging fix</notes> + <state>beta</state> + </release> + <release> + <version>0.9</version> + <date>2002-05-12</date> + <notes>Initial release</notes> + <state>beta</state> + </release> </changelog> - </package> +</package> http://cvs.php.net/diff.php/php-src/pear/package-PEAR.xml?r1=1.28.2.26&r2=1.28.2.27&ty=u Index: php-src/pear/package-PEAR.xml diff -u php-src/pear/package-PEAR.xml:1.28.2.26 php-src/pear/package-PEAR.xml:1.28.2.27 --- php-src/pear/package-PEAR.xml:1.28.2.26 Fri Dec 19 08:55:45 2003 +++ php-src/pear/package-PEAR.xml Sun Jan 25 18:42:43 2004 @@ -47,8 +47,8 @@ </maintainer> </maintainers> <release> - <version>1.3b5</version> - <date>2003-12-19</date> + <version>1.3b6</version> + <date>2004-01-26</date> <state>beta</state> <notes> PEAR Installer: @@ -58,6 +58,7 @@ * Bug #248 --force command does not work as expected * Bug #293 [Patch] PEAR_Error not calling static method callbacks for error-handler * Bug #324 pear -G gives Fatal Error (PHP-GTK not installed, but error is at engine level) +* Bug #594 PEAR_Common::analyzeSourceCode fails on string with $var and { * Moved download code into its own class * Fully unit tested the installer, packager, downloader, and PEAR_Common @@ -125,8 +126,8 @@ <dep type="pkg" rel="ge" version="1.1">Archive_Tar</dep> <dep type="pkg" rel="ge" version="1.2">Console_Getopt</dep> <dep type="pkg" rel="ge" version="1.0.4">XML_RPC</dep> - <dep type="ext" rel="has" optional="yes">xmlrpc</dep> <dep type="ext" rel="has">xml</dep> + <dep type="ext" rel="has">pcre</dep> </deps> </release> </package> http://cvs.php.net/diff.php/php-src/pear/package.dtd?r1=1.27.4.9&r2=1.27.4.10&ty=u Index: php-src/pear/package.dtd diff -u php-src/pear/package.dtd:1.27.4.9 php-src/pear/package.dtd:1.27.4.10 --- php-src/pear/package.dtd:1.27.4.9 Sun Jan 25 18:35:02 2004 +++ php-src/pear/package.dtd Sun Jan 25 18:42:43 2004 @@ -1,5 +1,5 @@ <!-- - $Id: package.dtd,v 1.27.4.9 2004/01/25 23:35:02 pajoye Exp $ + $Id: package.dtd,v 1.27.4.10 2004/01/25 23:42:43 pajoye Exp $ This is the PEAR package description, version 1.0. It should be used with the informal public identifier:
« previous php.pear.core (#71) next »