PEAR is discontinued

This is a static archive preserving historical releases and metadata. No new packages or updates will be published. For updates to existing packages, or to publish new packages, please use Composer and Packagist.

Home » PEAR » PEAR » Bug #1818

pear.bat doesn't work

Details

Submitted2004-07-08 00:48 UTC
Fromchris at interspire dot com
StatusBogus
PackagePEAR
PHP Version4.3.7
OSWindows XP
Roadmaps(Not assigned)

Comments

[2004-07-08 00:48 UTC] chris at interspire dot com

Description:
------------
Downloaded the Win32-zip file from php.net.

Unzipped into d:\php

ran go-pear.bat (installed the pear.reg key).

Running pear.bat I get:

Warning: array_shift() [http://www.php.net/function.array-shift]: The argument should be an array in pearcmd.php on line 54
Console_Getopt: Could not read cmd args (register_argc_argv=Off?)

Reproduce code:
---------------
pear.bat contains:

"%PHP_PEAR_PHP_BIN%" -C -d output_buffering=1 -d register_argc_argv=On -d include_path="%PHP_PEAR_INSTALL_DIR%" -f "%PHP_PEAR_INSTALL_DIR%\pearcmd.php" -- %1 %2 %3 %4 %5 %6 %7 %8 %9

I have to change
-d register_argc_argv=On

to

-d register_argc_argv=1

and it works.