#35502 [NEW]: PHP 5.1.1 CGI does not attempt to read php.ini from current directory
| From: | andrew dot tulloch at maximalls dot com | Date: | Thu, 01 Dec 2005 11:47:59 +0000 |
| Subject: | #35502 [NEW]: PHP 5.1.1 CGI does not attempt to read php.ini from current directory | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-89563@lists.php.net to get a copy of this message | ||
From: andrew dot tulloch at maximalls dot com
Operating system: Linux
PHP version: 5.1.1
PHP Bug Type: CGI related
Bug description: PHP 5.1.1 CGI does not attempt to read php.ini from current directory
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 bug report at http://bugs.php.net/?id=35502&edit=1
--
Try a CVS snapshot (PHP 4.4): http://bugs.php.net/fix.php?id=35502&r=trysnapshot44
Try a CVS snapshot (PHP 5.1): http://bugs.php.net/fix.php?id=35502&r=trysnapshot51
Try a CVS snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=35502&r=trysnapshot60
Fixed in CVS: http://bugs.php.net/fix.php?id=35502&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=35502&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=35502&r=needtrace
Need Reproduce Script: http://bugs.php.net/fix.php?id=35502&r=needscript
Try newer version: http://bugs.php.net/fix.php?id=35502&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=35502&r=support
Expected behavior: http://bugs.php.net/fix.php?id=35502&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=35502&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=35502&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=35502&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=35502&r=php3
Daylight Savings: http://bugs.php.net/fix.php?id=35502&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=35502&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=35502&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=35502&r=float
No Zend Extensions: http://bugs.php.net/fix.php?id=35502&r=nozend
MySQL Configuration Error: http://bugs.php.net/fix.php?id=35502&r=mysqlcfg