From ec376e510c5910a7e625d9edc640a009bf2b2366 Mon Sep 17 00:00:00 2001 From: Antony Dovgal Date: Fri, 31 Mar 2006 11:11:26 +0000 Subject: [PATCH] MF51: fix compile failure with old GCC (see bug #36931) --- ext/standard/info.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/ext/standard/info.c b/ext/standard/info.c index 0a35556f26..7fb61bc69d 100644 --- a/ext/standard/info.c +++ b/ext/standard/info.c @@ -63,10 +63,12 @@ PHPAPI extern char *php_ini_scanned_files; static int php_info_write_wrapper(const char *str, uint str_length) { + int new_len, written; + char *elem_esc; + TSRMLS_FETCH(); - int new_len, written; - char *elem_esc = php_escape_html_entities((char *)str, str_length, &new_len, 0, ENT_QUOTES, NULL TSRMLS_CC); + elem_esc = php_escape_html_entities((char *)str, str_length, &new_len, 0, ENT_QUOTES, NULL TSRMLS_CC); written = php_body_write(elem_esc, new_len TSRMLS_CC); -- 2.50.1