Edit report at https://bugs.php.net/bug.php?id=55778&edit=1

 ID:                 55778
 Updated by:         paj...@php.net
 Reported by:        marc at leftek dot com
 Summary:            PHPIniDir only works correctly for forward slashes,
                     not backward slashes
 Status:             Open
 Type:               Bug
 Package:            Windows Installer
 Operating System:   Windows 7
 PHP Version:        5.3.8
-Assigned To:        
+Assigned To:        jmertic
 Block user comment: N
 Private report:     N

 New Comment:

John, can you take a look please?


Previous Comments:
------------------------------------------------------------------------
[2011-09-25 12:52:42] marc at leftek dot com

Description:
------------
I think it was the installer that put the line in my httpd.conf:
PHPIniDir "C:\Program Files (x86)\PHP\"

This resulted in phpinfo() producing:
Configuration File (php.ini) Path       C:\Windows
Loaded Configuration File       (none)

This causes the INI not to be found and PHP just uses defaults. Changing the 
slashes in the above line to:
PHPIniDir "C:/Program Files (x86)/PHP/"

and phpinfo() correctly produces:
Configuration File (php.ini) Path       C:\Windows
Loaded Configuration File       C:\Program Files (x86)\PHP\php.ini

Hopefully this can get changed to accept either kind of slash since Windows 
Installer seems to use the wrong one.  Also it would be helpful to have apache 
output an error log if no php.ini was found in the expected location and it was 
switching to defaults.



------------------------------------------------------------------------



-- 
Edit this bug report at https://bugs.php.net/bug.php?id=55778&edit=1

Reply via email to