From: Antony Dovgal Date: Fri, 31 Mar 2006 11:11:26 +0000 (+0000) Subject: MF51: fix compile failure with old GCC (see bug #36931) X-Git-Tag: RELEASE_1_3~181 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=ec376e510c5910a7e625d9edc640a009bf2b2366;p=php MF51: fix compile failure with old GCC (see bug #36931) --- 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);