[packages/php4] - ap_get_server_version fix

arekm arekm at pld-linux.org
Mon Aug 11 13:15:41 CEST 2014


commit 3af3d04d6dfac1476608ff9e6fa760af9b553ca6
Author: Arkadiusz Miśkiewicz <arekm at maven.pl>
Date:   Mon Aug 11 13:15:38 2014 +0200

    - ap_get_server_version fix

 php4-apache24.patch | 15 +++++++++++++++
 1 file changed, 15 insertions(+)
---
diff --git a/php4-apache24.patch b/php4-apache24.patch
index 773245e..3cf15f0 100644
--- a/php4-apache24.patch
+++ b/php4-apache24.patch
@@ -96,3 +96,18 @@ diff -ur -x configure -x aclocal.m4 -x config.guess -x config.sub -x '*.orig' -x
 +    fi
    fi
    AC_MSG_RESULT(yes)
+
+--- php-4.4.9/sapi.org/apache2handler/php_functions.c	2007-12-31 08:22:55.000000000 +0100
++++ php-4.4.9/sapi/apache2handler/php_functions.c	2014-08-11 13:09:01.932246720 +0200
+@@ -324,7 +324,11 @@
+ 
+ static char *php_apache_get_version()
+ {
++#if MODULE_MAGIC_NUMBER_MAJOR >= 20060905
++	return (char *) ap_get_server_banner();
++#else
+ 	return (char *) ap_get_server_version();
++#endif
+ }
+ 
+ /* {{{ proto string apache_get_version(void)
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/php4.git/commitdiff/3af3d04d6dfac1476608ff9e6fa760af9b553ca6



More information about the pld-cvs-commit mailing list