Mombu the Php Forum sponsored links

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

sponsored links

1 7th June 10:33
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

Based on this page:

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

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
Try a CVS snapshot (PHP 4.4):
Try a CVS snapshot (PHP 5.2):
Try a CVS snapshot (PHP 6.0):
Fixed in CVS:
Fixed in release:
Need backtrace:
Need Reproduce Script:
Try newer version:
Not developer issue:
Expected behavior:
Not enough info:
Submitted twice:
PHP 3 support discontinued:
Daylight Savings:
IIS Stability:
Install GNU Sed:
Floating point limitations:
No Zend Extensions:
MySQL Configuration Error:
  Reply With Quote

  sponsored links


Thread Tools
Display Modes

Copyright 2006 - Dies Mies Jeschet Boenedoesef Douvema Enitemaus -