ID: 35502 Updated by: [EMAIL PROTECTED] 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