#38023 [Opn->Bgs]: -c option does not work in command line when defined in the #!/bin/php line
| From: | tony2001@php.net | Date: | Thu, 06 Jul 2006 15:48:38 +0000 |
| Subject: | #38023 [Opn->Bgs]: -c option does not work in command line when defined in the #!/bin/php line | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-99165@lists.php.net to get a copy of this message | ||
ID: 38023
Updated by: tony2001@php.net
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