php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Request #54084 Fix apxs Apache version test to work with Apache variants
Submitted: 2011-02-24 03:08 UTC Modified: 2011-03-23 20:26 UTC
From: sixd@php.net Assigned: sixd (profile)
Status: Closed Package: *Configuration Issues
PHP Version: 5.3.6RC1 OS: All
Private report: No CVE-ID: None
 [2011-02-24 03:08 UTC] sixd@php.net
Description:
------------
A small change to acinclude.m4 will let the Apache version number check
work correctly when installing PHP on Oracle HTTP Server (OHS).

The end user work around is to edit 'configure' and change
     APACHE_VERSION=`expr $4 \* 1000000 + $5 \* 1000 + $6`
   to
     APACHE_VERSION=`expr $6 \* 1000000 + $7 \* 1000 + $8`

The suggested real base patch is:

Index: acinclude.m4
===================================================================
--- acinclude.m4	(revision 308331)
+++ acinclude.m4	(working copy)
@@ -2590,7 +2590,7 @@
 dnl version for apache1/2.
 dnl
 AC_DEFUN([PHP_AP_EXTRACT_VERSION],[
-  ac_output=`$1 -v 2>&1 | grep version`
+  ac_output=`$1 -v 2>&1 | grep version | $SED -e 's/Oracle-HTTP-//'`
   ac_IFS=$IFS
 IFS="- /.
 "



Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2011-03-23 19:56 UTC] sixd@php.net
Automatic comment from SVN on behalf of sixd
Revision: http://svn.php.net/viewvc/?view=revision&revision=309610
Log: Fixed bug #54084 (Fix apxs Apache version test to work with Oracle HTTP Server) (Chris Jones)
 [2011-03-23 20:26 UTC] sixd@php.net
-Status: Open +Status: Closed -Assigned To: +Assigned To: sixd
 [2011-03-23 20:26 UTC] sixd@php.net
Fixed in PHP's 5.3 and trunk branches.  It will first appear in the next version after PHP 5.3.6.
 [2011-11-08 04:59 UTC] stas@php.net
Automatic comment from SVN on behalf of stas
Revision: http://svn.php.net/viewvc/?view=revision&revision=318902
Log: Fixed bug #54084 (token_get_all with regards to __halt_compiler is not binary safe)
 [2012-04-18 09:47 UTC] laruence@php.net
Automatic comment on behalf of stas
Revision: http://git.php.net/?p=php-src.git;a=commit;h=0d591e599f64df8e10f150bd2f87e4a403fcb1eb
Log: Fixed bug #54084 (token_get_all with regards to __halt_compiler is not binary safe)
 [2012-07-24 23:39 UTC] rasmus@php.net
Automatic comment on behalf of stas
Revision: http://git.php.net/?p=php-src.git;a=commit;h=0d591e599f64df8e10f150bd2f87e4a403fcb1eb
Log: Fixed bug #54084 (token_get_all with regards to __halt_compiler is not binary safe)
 [2013-11-17 09:35 UTC] laruence@php.net
Automatic comment on behalf of stas
Revision: http://git.php.net/?p=php-src.git;a=commit;h=0d591e599f64df8e10f150bd2f87e4a403fcb1eb
Log: Fixed bug #54084 (token_get_all with regards to __halt_compiler is not binary safe)
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu Apr 18 17:01:28 2024 UTC