summaryrefslogtreecommitdiff
path: root/sapi/apache/php_apache.c
diff options
context:
space:
mode:
authorfoobar <sniper@php.net>2003-09-09 21:30:48 +0000
committerfoobar <sniper@php.net>2003-09-09 21:30:48 +0000
commitf04643ee4c4e833945195823b0eec3bbd3bd146e (patch)
tree3297b1547436edaaa181ed9fc60f77737b2d1fa4 /sapi/apache/php_apache.c
parent4e6672eadd7f39dd0cb827ac6a3a2f0dd56ebeba (diff)
downloadphp-git-f04643ee4c4e833945195823b0eec3bbd3bd146e.tar.gz
Show the runtime version of Apache instead of compile time.
Diffstat (limited to 'sapi/apache/php_apache.c')
-rw-r--r--sapi/apache/php_apache.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/sapi/apache/php_apache.c b/sapi/apache/php_apache.c
index a59336a38c..ec7aca48db 100644
--- a/sapi/apache/php_apache.c
+++ b/sapi/apache/php_apache.c
@@ -163,6 +163,7 @@ PHP_FUNCTION(apache_note)
*/
PHP_MINFO_FUNCTION(apache)
{
+ char *apv = php_apache_get_version();
module *modp = NULL;
char output_buf[128];
#if !defined(WIN32) && !defined(WINNT)
@@ -195,7 +196,9 @@ PHP_MINFO_FUNCTION(apache)
php_info_print_table_row(2, "APACHE_TARGET", PHP_APACHE_TARGET);
#endif
- php_info_print_table_row(2, "Apache Version", SERVER_VERSION);
+ if (apv && *apv) {
+ php_info_print_table_row(2, "Apache Version", apv);
+ }
#ifdef APACHE_RELEASE
sprintf(output_buf, "%d", APACHE_RELEASE);