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

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

 New Comment:

This bug has been fixed in SVN.

Snapshots of the sources are packaged every three hours; this change
will be in the next snapshot. You can grab the snapshot at
http://snaps.php.net/.

 For Windows:

http://windows.php.net/snapshots/
 
Thank you for the report, and for helping us make PHP better.




Previous Comments:
------------------------------------------------------------------------
[2011-10-03 19:23:57] jmer...@php.net

Automatic comment from SVN on behalf of jmertic
Revision: http://svn.php.net/viewvc/?view=revision&revision=317678
Log: Bug 55778 - Write out httpd.conf with forward slashes on Windows 7.

------------------------------------------------------------------------
[2011-09-25 13:06:11] paj...@php.net

John, can you take a look please?

------------------------------------------------------------------------
[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