Bug #52753 [Asn->Csd]: With proposed fix: use of '/' in httpd.conf causes apache crash
| From: | jmertic@php.net | Date: | Wed, 22 Dec 2010 16:03:55 +0000 |
| Subject: | Bug #52753 [Asn->Csd]: With proposed fix: use of '/' in httpd.conf causes apache crash | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-157269@lists.php.net to get a copy of this message | ||
Edit report at http://bugs.php.net/bug.php?id=52753&edit=1
ID: 52753
Updated by: jmertic@php.net
Reported by: jrompre at gmail dot com
Summary: With proposed fix: use of '/' in httpd.conf causes
apache crash
-Status: Assigned
+Status: Closed
Type: Bug
Package: Windows Installer
Operating System: Win/XP
PHP Version: 5.3.3
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/.
Thank you for the report, and for helping us make PHP better.
Previous Comments:
------------------------------------------------------------------------
[2010-12-22 17:03:44] jmertic@php.net
Automatic comment from SVN on behalf of jmertic
Revision: http://svn.php.net/viewvc/?view=revision&revision=306574
Log: Bug 52753 - Comment out changing '\' to '/' in the path to the PHP
dll/exe since it causes an invalid http.conf file
------------------------------------------------------------------------
[2010-09-02 11:09:55] kalle@php.net
Seems like its intended in the win-installer, see:
PHPInstallerScripts{XXX}.vbs
strPHPPath = Replace(strInstallDir,"\","/")
Guess that should be reverted, but I don't have karma for that part.
Pierre? :)
------------------------------------------------------------------------
[2010-08-31 21:05:50] jrompre at gmail dot com
Description:
------------
This is easy, and I fixed it myself. I installed the V6 thread-safe
version (Windows) with the Apache2.2x module config option, and
restarted Apache, which caused an Apache crash. The problem was caused
by the httpd.conf added fragment which wrongly uses the Unix path
element separator - changing the '/' to a '\' fixed the problem, and I
could also see the test hello.php output as expected.
#BEGIN PHP INSTALLER EDITS - REMOVE ONLY ON UNINSTALL
PHPIniDir "C:/Program Files/PHP/"
LoadModule php5_module "C:/Program Files/PHP/php5apache2_2.dll"
#END PHP INSTALLER EDITS - REMOVE ONLY ON UNINSTALL
(change all '/' to '\' to prevent crashes in Windows)
Test script:
---------------
N/A
Expected result:
----------------
See description
Actual result:
--------------
See description
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/bug.php?id=52753&edit=1