|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #39787 PHP doesn't work with Apache 2.3 series
Submitted: 2006-12-10 11:52 UTC Modified: 2006-12-11 14:54 UTC
From: mv at binarysec dot com Assigned: iliaa (profile)
Status: Closed Package: Apache2 related
PHP Version: 5CVS-2006-12-10 (CVS) OS: All
Private report: No CVE-ID: None
 [2006-12-10 11:52 UTC] mv at binarysec dot com
PHP doesn't work with Apache 2.3 series.
On Apache 2.3 the ap_get_server_version() function has been replace by ap_get_server_banner() & ap_get_server_description().

See the Apache changelog (from trunk) :
* 20060905.0 (2.3.0-dev)  Replaced ap_get_server_version() with
*                         ap_get_server_banner() and ap_get_server_description()

Actual result:
httpd: Syntax error on line 53 of /Web/conf/httpd.conf: Cannot load /Web/modules/ into server: /Web/modules/ undefined symbol: ap_get_server_version


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2006-12-10 13:08 UTC] mv at binarysec dot com

Here is the patch allow PHP to support Apache > 2.3.
I add a new function - apache_get_description() that used the new Apache function ap_get_server_description(). This new function allow you to get the platform description :]

Awaiting your feedbacks
Michael Vergoz
 [2006-12-11 10:49 UTC]
The link is broken.
 [2006-12-11 12:43 UTC] mv at binarysec dot com
Sorry, here is the new link.
 [2006-12-11 12:54 UTC]
The patch itself looks ok to me, but I still see little sense in breaking API compatibility by removing ap_get_server_version() and introducing ap_get_server_banner(), so I would prefer asking Apache Group to leave ap_get_server_version() for BC.
Though, I repeat, the patch looks fine.
 [2006-12-11 14:54 UTC]
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
Thank you for the report, and for helping us make PHP better.

PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sun Jun 23 05:01:28 2024 UTC