PHP doesn't work with Apache 2.3 series

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

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

Pull Requests

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 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.