mirror of
https://github.com/php/php-src.git
synced 2025-08-15 21:48:51 +02:00
Fixed bug #39787 (PHP doesn't work with Apache 2.3).
This commit is contained in:
parent
ab765ca497
commit
d3aa695263
3 changed files with 10 additions and 0 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue