Home » PEAR » PEAR » Bug #933
CMD Usability Patch
Details
| Submitted | 2004-03-02 19:45 UTC |
|---|---|
| From | techtonik at tut dot by |
| Assigned | cellog |
| Status | Closed |
| Package | PEAR |
| PHP Version | 4CVS-2004-03-02 (stable) |
| OS | Windows |
| 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