|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2005-12-01 13:10 UTC] sniper@php.net
[2005-12-01 13:27 UTC] andrew dot tulloch at maximalls dot com
[2006-01-03 13:31 UTC] andrew dot tulloch at maximalls dot com
[2006-01-03 14:12 UTC] sniper@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Mon Nov 03 04:00:01 2025 UTC |
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.