]> granicus.if.org Git - php/commitdiff
Show the runtime version of Apache instead of compile time.
authorfoobar <sniper@php.net>
Tue, 9 Sep 2003 21:30:48 +0000 (21:30 +0000)
committerfoobar <sniper@php.net>
Tue, 9 Sep 2003 21:30:48 +0000 (21:30 +0000)
sapi/apache/php_apache.c

index a59336a38c98f17d384e36b671c1c35ab0e4ed63..ec7aca48dbb599bf1d40ea695b272d89efd6ef0a 100644 (file)
@@ -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);