Home » PEAR » PEAR » Bug #1818
pear.bat doesn't work
Details
| Submitted | 2004-07-08 00:48 UTC |
|---|---|
| From | chris at interspire dot com |
| Status | Bogus |
| Package | PEAR |
| PHP Version | 4.3.7 |
| OS | Windows 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.