#35502 [Opn->Bgs]: PHP 5.1.1 CGI does not attempt to read php.ini from current directory
| From: | sniper@php.net | Date: | Thu, 01 Dec 2005 12:10:22 +0000 |
| Subject: | #35502 [Opn->Bgs]: PHP 5.1.1 CGI does not attempt to read php.ini from current directory | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-89567@lists.php.net to get a copy of this message | ||
ID: 35502
Updated by: sniper@php.net
Reported By: andrew dot tulloch at maximalls dot com
-Status: Open
+Status: Bogus
Bug Type: CGI related
Operating System: Linux
PHP Version: 5.1.1
New Comment:
Thank you for taking the time to write to us, but this is not
a bug. Please double-check the documentation available at
http://www.php.net/manual/ and the instructions on how to
report
a bug at http://bugs.php.net/how-to-report.php
Previous Comments:
------------------------------------------------------------------------
[2005-12-01 12:47:55] andrew dot tulloch at maximalls dot com
Description:
------------
PHP 5.0.5 CGI SAPI attempts to read php.ini from the current directory,
PHP 5.1.1 CGI SAPI, compiled with same options does not.
Reproduce code:
---------------
strace php 2>&1 | grep php.ini
Expected result:
----------------
Expected and actual running PHP 5.0.5:
strace /opt/php-5.0.5/bin/php 2>&1 | grep php.ini
open("./php.ini", O_RDONLY) = -1 ENOENT (No such file or
directory)
open("/opt/php-5.0.5/bin//php.ini", O_RDONLY) = -1 ENOENT (No such file
or directory)
open("/opt/php-5.0.5/lib/php.ini", O_RDONLY) = -1 ENOENT (No such file
or directory)
Note attempt to read php.ini from current directory.
Actual result:
--------------
Running PHP 5.1.1:
strace /opt/php-5.1.1/bin/php 2>&1 | grep php.ini
open("/opt/php-5.1.1/bin/php.ini", O_RDONLY) = -1 ENOENT (No such file
or directory)
open("/opt/php-5.1.1/lib/php.ini", O_RDONLY) = -1 ENOENT (No such file
or directory)
No attempt to read php.ini from current directory.
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=35502&edit=1