From: inglis-php at yahoo dot com dot au Operating system: win xp pro PHP version: 5.2.4 PHP Bug Type: *Configuration Issues Bug description: Configuration File (php.ini) Path incorrect
Description: ------------ I have just used the .msi file to install php 5.2.4 All appeared to work well. I installed to c:\PHP folder. Then wrote a small .php test file (below) and tried it and the noticed that: The phpinfo() function is reporting php.ini file as being in the 'C:\Windows' directory. It is actually located in 'C:\PHP' directory. I have searched my c drive and there is only one copy of php.ini and it is in the c:\PHP directory. I assume it finds the php.ini via the path environment which now starts with c:\PHP. Reproduce code: --------------- <html> <head> <title>PHP Test</title> </head> <body> <?php echo '<p>Hello World</p>'; ?> <?php phpinfo(); ?> </body> </html> Expected result: ---------------- C:\PHP Actual result: -------------- C:\Windows -- Edit bug report at http://bugs.php.net/?id=42849&edit=1 -- Try a CVS snapshot (PHP 4.4): http://bugs.php.net/fix.php?id=42849&r=trysnapshot44 Try a CVS snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=42849&r=trysnapshot52 Try a CVS snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=42849&r=trysnapshot60 Fixed in CVS: http://bugs.php.net/fix.php?id=42849&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=42849&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=42849&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=42849&r=needscript Try newer version: http://bugs.php.net/fix.php?id=42849&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=42849&r=support Expected behavior: http://bugs.php.net/fix.php?id=42849&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=42849&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=42849&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=42849&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=42849&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=42849&r=dst IIS Stability: http://bugs.php.net/fix.php?id=42849&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=42849&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=42849&r=float No Zend Extensions: http://bugs.php.net/fix.php?id=42849&r=nozend MySQL Configuration Error: http://bugs.php.net/fix.php?id=42849&r=mysqlcfg