php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #55778 PHPIniDir only works correctly for forward slashes, not backward slashes
Submitted: 2011-09-25 12:52 UTC Modified: 2011-10-03 19:24 UTC
From: marc at leftek dot com Assigned: jmertic (profile)
Status: Closed Package: Windows Installer
PHP Version: 5.3.8 OS: Windows 7
Private report: No CVE-ID: None
View Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
If you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: marc at leftek dot com
New email:
PHP Version: OS:

 

 [2011-09-25 12:52 UTC] 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.


Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2011-09-25 13:06 UTC] pajoye@php.net
-Assigned To: +Assigned To: jmertic
 [2011-09-25 13:06 UTC] pajoye@php.net
John, can you take a look please?
 [2011-10-03 19:23 UTC] jmertic@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-10-03 19:24 UTC] jmertic@php.net
-Status: Assigned +Status: Closed
 [2011-10-03 19:24 UTC] jmertic@php.net
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.


 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Fri Dec 13 09:01:28 2024 UTC