cvs: pear-core / package-PEAR.xml package2.xml /scripts pearcmd.php

From: Date: Wed, 30 Nov 2005 05:48:03 +0000
Subject: cvs: pear-core / package-PEAR.xml package2.xml /scripts pearcmd.php
Groups: php.pear.cvs php.pear.core 
Request: Send a blank email to pear-cvs+get-36613@lists.php.net to get a copy of this message
cellog Wed Nov 30 00:48:03 2005 EDT Modified files: /pear-core package-PEAR.xml package2.xml /pear-core/scripts pearcmd.php Log: * fix problem with -options when using CGI version of PHP http://cvs.php.net/diff.php/pear-core/package-PEAR.xml?r1=1.313&r2=1.314&ty=u Index: pear-core/package-PEAR.xml diff -u pear-core/package-PEAR.xml:1.313 pear-core/package-PEAR.xml:1.314 --- pear-core/package-PEAR.xml:1.313 Sat Nov 26 21:52:25 2005 +++ pear-core/package-PEAR.xml Wed Nov 30 00:47:57 2005 @@ -72,6 +72,7 @@ <state>stable</state> <notes> Minor bugfix release + * fix problem with -options when using CGI version of PHP * fix Bug #6034: date format bug * fix Bug #6047: pear makerpm fails to handle docs in root directory </notes> http://cvs.php.net/diff.php/pear-core/package2.xml?r1=1.206&r2=1.207&ty=u Index: pear-core/package2.xml diff -u pear-core/package2.xml:1.206 pear-core/package2.xml:1.207 --- pear-core/package2.xml:1.206 Sat Nov 26 21:52:26 2005 +++ pear-core/package2.xml Wed Nov 30 00:47:58 2005 @@ -77,6 +77,7 @@ <license uri="http://www.php.net/license">PHP License</license> <notes> Minor bugfix release + * fix problem with -options when using CGI version of PHP * fix Bug #6034: date format bug * fix Bug #6047: pear makerpm fails to handle docs in root directory </notes> http://cvs.php.net/diff.php/pear-core/scripts/pearcmd.php?r1=1.29&r2=1.30&ty=u Index: pear-core/scripts/pearcmd.php diff -u pear-core/scripts/pearcmd.php:1.29 pear-core/scripts/pearcmd.php:1.30 --- pear-core/scripts/pearcmd.php:1.29 Fri Nov 11 21:26:53 2005 +++ pear-core/scripts/pearcmd.php Wed Nov 30 00:48:02 2005 @@ -18,7 +18,7 @@ // | | // +----------------------------------------------------------------------+ // -// $Id: pearcmd.php,v 1.29 2005/11/12 02:26:53 cellog Exp $ +// $Id: pearcmd.php,v 1.30 2005/11/30 05:48:02 cellog Exp $ ob_end_clean(); if (!defined('PEAR_RUNTYPE')) { @@ -71,6 +71,14 @@ $all_commands = PEAR_Command::getCommands(); $argv = Console_Getopt::readPHPArgv(); +if (count($argv)) { + for ($i = 0; $i < count($argv); $i++) { + if ($argv[$i] == '--') { + unset($argv[$i]); + } + } + $argv = array_values($argv); +} $progname = PEAR_RUNTYPE; if (in_array('getopt2', get_class_methods('Console_Getopt'))) { array_shift($argv);

« previous php.pear.cvs (#36613) next »