php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #39800 Windows installer does not remove PHP hooks in httpd.conf
Submitted: 2006-12-11 16:07 UTC Modified: 2008-08-22 17:37 UTC
From: php at ahlenstorf dot ch Assigned: jmertic (profile)
Status: Closed Package: Windows Installer
PHP Version: 5.2.0 OS: Windows XP SP2
Private report: No CVE-ID: None
 [2006-12-11 16:07 UTC] php at ahlenstorf dot ch
Description:
------------
The Windows Installer of PHP 5.2 does not remove the PHP hooks in the httpd.conf of Apache 2.2.3 when uninstalling PHP 5.2.0. So it's impossible to restart Apache 2.2.3 if you don't remove the hooks manually.

BTW: It seems that \n instead of \r\n is used as line ending in the configuration snippet inserted by the installer. Maybe that should be changed to make the average windows editors happy...

Reproduce code:
---------------
Simply install and uninstall PHP 5.2.0 with the Windows Installer to verify the problem.

Expected result:
----------------
httpd.conf without PHP hooks.

Actual result:
--------------
#BEGIN PHP INSTALLER EDITS - REMOVE ONLY ON UNINSTALL
PHPIniDir "C:\Programme\PHP\"
LoadModule php5_module "C:\Programme\PHP\php5apache2_2.dll"
#END PHP INSTALLER EDITS - REMOVE ONLY ON UNINSTALL


Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2006-12-11 16:10 UTC] php at ahlenstorf dot ch
I forgot to mention: If you leave the PHP hooks in the httpd.conf and you reinstall PHP, you end up having a second block with PHP hooks.
 [2006-12-12 16:28 UTC] jmertic@php.net
Thank you for taking the time to write to us, but this is not
a bug. Please double-check the documentation available at
http://www.php.net/manual/ and the instructions on how to report
a bug at http://bugs.php.net/how-to-report.php


 [2007-04-24 15:30 UTC] jmertic@php.net
This bug has been fixed in CVS.

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.


 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu Oct 31 22:01:27 2024 UTC