ID:               37782
 Updated by:       [EMAIL PROTECTED]
 Reported By:      lordi at msdi dot ca
-Status:           Open
+Status:           Feedback
 Bug Type:         Documentation problem
 Operating System: Windows 2003
 PHP Version:      5.1.4
 New Comment:

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.


Previous Comments:
------------------------------------------------------------------------

[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

Reply via email to