mirror of
https://github.com/php/php-src.git
synced 2024-09-22 18:37:25 +00:00
Make the version code get the version from the current Apache, rather then
the Apache PHP was compiled against.
This commit is contained in:
parent
648dd88b42
commit
097055a862
@ -507,7 +507,13 @@ PHP_FUNCTION(apache_exec_uri)
|
||||
Fetch Apache version */
|
||||
PHP_FUNCTION(apache_get_version)
|
||||
{
|
||||
RETURN_STRING(SERVER_VERSION, 1);
|
||||
char *apv = (char *) ap_get_server_version();
|
||||
|
||||
if (apv && *apv) {
|
||||
RETURN_STRING(apv, 1);
|
||||
} else {
|
||||
RETURN_FALSE;
|
||||
}
|
||||
}
|
||||
/* }}} */
|
||||
|
||||
|
@ -1916,7 +1916,13 @@ PHP_FUNCTION(apache_exec_uri)
|
||||
Fetch Apache version */
|
||||
PHP_FUNCTION(apache_get_version)
|
||||
{
|
||||
RETURN_STRING(SERVER_VERSION, 1);
|
||||
char *apv = (char *) ap_get_server_version();
|
||||
|
||||
if (apv && *apv) {
|
||||
RETURN_STRING(apv, 1);
|
||||
} else {
|
||||
RETURN_FALSE;
|
||||
}
|
||||
}
|
||||
/* }}} */
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user