Re: Re: PEAR Windows Installation problem

From: Date: Thu, 03 Mar 2005 22:39:45 +0000
Subject: Re: Re: PEAR Windows Installation problem
References: 1 2 3 4  Groups: php.pear.general 
Request: Send a blank email to pear-general+get-17830@lists.php.net to get a copy of this message
Robert wrote:
============================= C:\PHP\PEAR>pear upgrade PEAR downloading PEAR-1.3.5.tgz ... Starting to download PEAR-1.3.5.tgz (108,423 bytes) .........................done: 108,423 bytes upgrade ok: PEAR 1.3.5 C:\PHP\PEAR>pear list-upgrades Warning: array_shift(): The argument should be an array in pearcmd.php on line 5 4 Console_Getopt: Could not read cmd args (register_argc_argv=Off?) ============================= I have a stock install of 4.3.10 on Windows XP
Ah - your php.ini has the ini setting register_argc_argv=Off perhaps, or there is some other problem that is causing $_SERVER['argv'] to not be set at all instead of containing the "list-upgrades" string. Could you change the first line of the pearcmd.php script to: phpinfo();exit; and then run: pear |more use the space bar to scroll down until you see the setting for register_argc_argv. In addition, near the top screen, you will see the actual location of your php.ini file, make a note if it is not what you expected (i.e. it's using another file or can't find any) After you finish, you can remove the line you added to pearcmd.php. Post here again if register_argc_argv *is* enabled, as that is really weird. Greg

« previous php.pear.general (#17830) next »