php.net |  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
Status: Closed Package: Apache2 related
PHP Version: 5CVS-2006-12-10 (CVS) OS: All
Private report: No CVE-ID:
 [2006-12-10 11:52 UTC] mv at binarysec dot com
Description:
------------
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/libphp5.so into server: /Web/modules/libphp5.so: undefined symbol: ap_get_server_version

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

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

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 :]

http://badcode.be/~descript/PHP/PHP-Apache-2.3-support.diff

Awaiting your feedbacks
Michael Vergoz
 [2006-12-11 10:49 UTC] tony2001@php.net
The link is broken.
 [2006-12-11 12:43 UTC] mv at binarysec dot com
Sorry, here is the new link. 

http://mykii.binarysec.com/PHP/PHP-Apache-2.3-support.diff
 [2006-12-11 12:54 UTC] tony2001@php.net
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] iliaa@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-2014 The PHP Group
All rights reserved.
Last updated: Fri Apr 18 15:02:26 2014 UTC