iliaa Mon Jan 27 20:25:34 2003 EDT
Modified files:
/php4/sapi/apache2filter php_functions.c
Log:
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().
Index: php4/sapi/apache2filter/php_functions.c
diff -u php4/sapi/apache2filter/php_functions.c:1.36
php4/sapi/apache2filter/php_functions.c:1.37
--- php4/sapi/apache2filter/php_functions.c:1.36 Sat Jan 18 15:27:04 2003
+++ php4/sapi/apache2filter/php_functions.c Mon Jan 27 20:25:34 2003
@@ -16,7 +16,7 @@
+----------------------------------------------------------------------+
*/
-/* $Id: php_functions.c,v 1.36 2003/01/18 20:27:04 iliaa Exp $ */
+/* $Id: php_functions.c,v 1.37 2003/01/28 01:25:34 iliaa Exp $ */
#include "php.h"
#include "ext/standard/php_smart_str.h"
@@ -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;
@@ -341,6 +339,9 @@
smart_str_appends(&tmp1, s);
}
smart_str_appendc(&tmp1, ' ');
+ }
+ if ((tmp1.len - 1) >= 0) {
+ tmp1.c[tmp1.len - 1] = '\0';
}
php_info_print_table_start();
--
PHP CVS Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php