From:             alison dot holloway at oracle dot com
Operating system: Windows XP SP2
PHP version:      5.2.2
PHP Bug Type:     Apache2 related
Bug description:  PHPIniDir Uses Backslashes in httpd.conf so can't find php.ini

Description:
------------
The httpd.conf files in Apache2 uses backslashes in the PHPIniDir
parameter, so the path for php.ini is set to C:\Windows, instead of where
PHP is installed. This means that no extensions or configuration changes
are made. Only the default PHP settings are available.

While there are some similar bugs (Bug #39799: Windows installer does not
set PHPIniDir properly), they suggest the fix is in this release, but it
still doesn't work as expected, so continuing with logging this bug.

Reproduce code:
---------------
Install Apache 2.0.59 on Windows XP Pro SP2.
Install PHP 5.2.2 using .msi installer.
Create phpinfo() file and check the location of the php.ini file.
Location of php.ini is set to C:\WINDOWS.
Change following line in httpd.conf

PHPIniDir "C:\Program Files\PHP\"

Save and restart Apache.

The location of php.ini is now set correctly to C:\Program
Files\PHP\php.ini.

All extensions and configuration is now correct.


Expected result:
----------------
Expected extensions to be loaded, but were not.

Actual result:
--------------
No extensions loaded.

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

Reply via email to