diff options
author | Ilia Alshanetsky <iliaa@php.net> | 2006-12-11 14:54:14 +0000 |
---|---|---|
committer | Ilia Alshanetsky <iliaa@php.net> | 2006-12-11 14:54:14 +0000 |
commit | d3aa69526309f444760bb03370e59afb7ed2c390 (patch) | |
tree | 471f6f5107b7c2bdf568edc5af3d9b98301ebdb1 /sapi/apache2handler/php_functions.c | |
parent | ab765ca497b81fd876f9651a3e156358bfd5d5b8 (diff) | |
download | php-git-d3aa69526309f444760bb03370e59afb7ed2c390.tar.gz |
Fixed bug #39787 (PHP doesn't work with Apache 2.3).
Diffstat (limited to 'sapi/apache2handler/php_functions.c')
-rw-r--r-- | sapi/apache2handler/php_functions.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/sapi/apache2handler/php_functions.c b/sapi/apache2handler/php_functions.c index 1e9b60abef..2e3db4c1fe 100644 --- a/sapi/apache2handler/php_functions.c +++ b/sapi/apache2handler/php_functions.c @@ -333,7 +333,11 @@ PHP_FUNCTION(apache_getenv) 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) |