From: Ilia Alshanetsky Date: Tue, 28 Jan 2003 01:25:34 +0000 (+0000) Subject: Fixed win32 build (bug #21506). X-Git-Tag: PHP_5_0_dev_before_13561_fix~11 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=d92a1f4dc102db7dca841f33634aa90ec713ae76;p=php Fixed win32 build (bug #21506). Fixed a bug that would cause garbage data to appear at the end of the loaded apache modules list in phpinfo(). --- diff --git a/sapi/apache2filter/php_functions.c b/sapi/apache2filter/php_functions.c index ae29e6e030..34f85b8812 100644 --- a/sapi/apache2filter/php_functions.c +++ b/sapi/apache2filter/php_functions.c @@ -40,8 +40,6 @@ #include "php_apache.h" -extern module **ap_loaded_modules; - static request_rec *php_apache_lookup_uri(char *filename TSRMLS_DC) { php_struct *ctx; @@ -342,6 +340,9 @@ PHP_MINFO_FUNCTION(apache) } smart_str_appendc(&tmp1, ' '); } + if ((tmp1.len - 1) >= 0) { + tmp1.c[tmp1.len - 1] = '\0'; + } php_info_print_table_start(); if (apv && *apv) {