Hi, Just over a year ago sniper committed a patch that breaks php.ini search path for CLI in order to align the behavior with the manual. You can see his commit message on http://cvs.php.net/viewvc.cgi/php-src/main/php_ini.c?view=log (revision 1.134).
I regret that this has just come to my attention (whole 5.1.x series has been released in the meanwhile), but this behavior is wrong and it needs fixing before 5.2.0 is out. The problem is that CLI would look up in the CWD for php.ini which is very bad for people writing PHP command line scripts using Unix shebang convention: #!/usr/bin/php <?php do_something(); Now, this script can risk doing different things depending on your CWD which is not a desirable behavior. CGI sapi used to behave in this way in this was one of the original motivations for making the separate CLI sapi. I'll be committing patch soon if I don't hear a very compelling reason not to. Edin -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php