PEAR is archived and read-only

This mirror preserves historical PEAR package releases and metadata so existing references remain available.

Home » PEAR » PEAR » Bug #933

CMD Usability Patch

Details

Submitted2004-03-02 19:45 UTC
Fromtechtonik at tut dot by
Assignedcellog
StatusClosed
PackagePEAR
PHP Version4CVS-2004-03-02 (stable)
OSWindows
Roadmaps(Not assigned)

Comments

[2004-03-02 19:45 UTC] techtonik at tut dot by

Description:
------------
By default PEAR requires that users set up register_argc_argv=On so they can use it from command line, but this is inconvenient in many cases there PEAR is used only on web-server and updated from cmd. So it would be better to include register_argc_argv=On to pear.bat instead.

As it said in php.ini
; If you don't use these variables, you
; should turn it off for increased performance.
register_argc_argv = Off

Reproduce code:
---------------
67c67
< "%PHP_PEAR_PHP_BIN%" -C -d output_buffering=1 -d include_path="%PHP_PEAR_INSTALL_DIR%" -f "%PHP_PEAR_INSTALL_DIR%\pearcmd.php" -- %1 %2 %3 %4 %5 %6 %7 %8 %9
---
> "%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