From: hjubin27 at yahoo dot com Operating system: Linux PHP version: 5.1.4 PHP Bug Type: PHP options/info functions Bug description: -c option does not work in command line when defined in the #!/bin/php line
Description: ------------ Under Linux (mandriva 2006.0) php 5.1.4 The -c php.ini-path does not work when invoqued as an argument in first shell command line with a blank between the -c and the path Reproduce code: --------------- phpinfo.php (bogus version): #!/usr/bin/php -c /home/hjubin/php.ini <?php phpinfo(); ?> phpinfowkr.php (workaround version): #!/usr/bin/php -c/home/hjubin/php.ini <?php phpinfo(); ?> Expected result: ---------------- Using the following command line: php -c /home/hjubin phpinfo.php | grep php.ini Result: Configuration File (php.ini) Path => /ldisk/home/hjubin/php.ini That is CORRECT sing the following command line: phpinfowkr.php | grep php.ini Result: Configuration File (php.ini) Path => /ldisk/home/hjubin/php.ini That is CORRECT Actual result: -------------- Using the following command line: ./phpinfo.php | grep php.ini returns : Configuration File (php.ini) Path => /etc -- Edit bug report at http://bugs.php.net/?id=38023&edit=1 -- Try a CVS snapshot (PHP 4.4): http://bugs.php.net/fix.php?id=38023&r=trysnapshot44 Try a CVS snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=38023&r=trysnapshot52 Try a CVS snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=38023&r=trysnapshot60 Fixed in CVS: http://bugs.php.net/fix.php?id=38023&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=38023&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=38023&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=38023&r=needscript Try newer version: http://bugs.php.net/fix.php?id=38023&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=38023&r=support Expected behavior: http://bugs.php.net/fix.php?id=38023&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=38023&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=38023&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=38023&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=38023&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=38023&r=dst IIS Stability: http://bugs.php.net/fix.php?id=38023&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=38023&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=38023&r=float No Zend Extensions: http://bugs.php.net/fix.php?id=38023&r=nozend MySQL Configuration Error: http://bugs.php.net/fix.php?id=38023&r=mysqlcfg
