Mombu the Php Forum sponsored links

Go Back   Mombu the Php Forum > Php > #37782 : php.ini in CWD not parsed
User Name
Password
REGISTER NOW! Mark Forums Read

sponsored links


Reply
 
1 7th June 10:33
php-bugs
External User
 
Posts: 1
Default #37782 : php.ini in CWD not parsed


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
do***entation 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 do***entation as per the
do***entation...

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 With Quote


  sponsored links


Reply


Thread Tools
Display Modes




Copyright 2006 SmartyDevil.com - Dies Mies Jeschet Boenedoesef Douvema Enitemaus -
666