From:             lordi at msdi dot ca
Operating system: Windows 2003
PHP version:      5.1.4
PHP Bug Type:     *Configuration Issues
Bug description:  php.ini in CWD not parsed

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 bug report at http://bugs.php.net/?id=37782&edit=1
-- 
Try a CVS snapshot (PHP 4.4): 
http://bugs.php.net/fix.php?id=37782&r=trysnapshot44
Try a CVS snapshot (PHP 5.2): 
http://bugs.php.net/fix.php?id=37782&r=trysnapshot52
Try a CVS snapshot (PHP 6.0): 
http://bugs.php.net/fix.php?id=37782&r=trysnapshot60
Fixed in CVS:                 http://bugs.php.net/fix.php?id=37782&r=fixedcvs
Fixed in release:             
http://bugs.php.net/fix.php?id=37782&r=alreadyfixed
Need backtrace:               http://bugs.php.net/fix.php?id=37782&r=needtrace
Need Reproduce Script:        http://bugs.php.net/fix.php?id=37782&r=needscript
Try newer version:            http://bugs.php.net/fix.php?id=37782&r=oldversion
Not developer issue:          http://bugs.php.net/fix.php?id=37782&r=support
Expected behavior:            http://bugs.php.net/fix.php?id=37782&r=notwrong
Not enough info:              
http://bugs.php.net/fix.php?id=37782&r=notenoughinfo
Submitted twice:              
http://bugs.php.net/fix.php?id=37782&r=submittedtwice
register_globals:             http://bugs.php.net/fix.php?id=37782&r=globals
PHP 3 support discontinued:   http://bugs.php.net/fix.php?id=37782&r=php3
Daylight Savings:             http://bugs.php.net/fix.php?id=37782&r=dst
IIS Stability:                http://bugs.php.net/fix.php?id=37782&r=isapi
Install GNU Sed:              http://bugs.php.net/fix.php?id=37782&r=gnused
Floating point limitations:   http://bugs.php.net/fix.php?id=37782&r=float
No Zend Extensions:           http://bugs.php.net/fix.php?id=37782&r=nozend
MySQL Configuration Error:    http://bugs.php.net/fix.php?id=37782&r=mysqlcfg

Reply via email to