#37782 [Fbk->Bgs]: php.ini in CWD not parsed
| From: | nlopess@php.net | Date: | Fri, 16 Jun 2006 16:49:16 +0000 |
| Subject: | #37782 [Fbk->Bgs]: php.ini in CWD not parsed | ||
| References: | 1 | Groups: | php.doc |
| Request: | Send a blank email to phpdoc+get-969373325@lists.php.net to get a copy of this message | ||
ID: 37782
Updated by: nlopess@php.net
Reported By: lordi at msdi dot ca
-Status: Feedback
+Status: Bogus
Bug Type: Documentation problem
Operating System: Windows 2003
PHP Version: 5.1.4
New Comment:
php-cli.exe is available in PHP 4 only. I've tested with php 5.2 and
everything is working correctly.
Previous Comments:
------------------------------------------------------------------------
[2006-06-16 16:36:34] colder@php.net
I can't reproduce it (php5.1.4 @ windowsXP)
Anyway, where did you find a php-cli.exe file ?
The CLI executable is only called php.exe in PHP5.
------------------------------------------------------------------------
[2006-06-12 01:59:50] lordi at msdi dot ca
Description:
------------
Based on this page:
http://ca.php.net/manual/en/configuration.php#ini.register-globals
a php.ini file located in the current directory should be parsed before
a file located in c:\windows\php.ini
If I use the php-cli.exe to parse files from iis, the
c:\windows\php.ini is parsed even if there is a php.ini file in the
local directory of the called script...
I tested the directory with getcwd() and it showed the right path...
I ran sysinternals filemon and I confirmed the bug or at least the
documentation problem...
Tracing the disk access, I saw php-cli.exe tried to access c:\php.ini
but got a not found error
Then the process tried to access c:\windows\php.ini which succeeded,
but without trying to load the php.ini file from the documentation as
per the documentation...
This worked fine in php 5.03, I just upgraded/clean reinstalled today
It might be a big security risk for people relying on local php.ini
files since it's another php.ini file that gets parsed
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=37782&edit=1