ID: 38023 Updated by: [EMAIL PROTECTED] Reported By: hjubin27 at yahoo dot com -Status: Open +Status: Bogus Bug Type: PHP options/info functions Operating System: Linux PHP Version: 5.1.4 New Comment:
Duplicate of bug #37352. Previous Comments: ------------------------------------------------------------------------ [2006-07-06 15:17:12] hjubin27 at yahoo dot com 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 this bug report at http://bugs.php.net/?id=38023&edit=1
