From: Antony Dovgal Date: Fri, 31 Mar 2006 11:11:12 +0000 (+0000) Subject: fix compile failure with old GCC (see bug #36931) X-Git-Tag: php-5.1.3RC3~107 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=8ccdceb4db1a2e979c16b1dc7314f44c51ab7c0c;p=php fix compile failure with old GCC (see bug #36931) --- diff --git a/ext/standard/info.c b/ext/standard/info.c index 1d53d5596e..03cf0260df 100644 --- a/ext/standard/info.c +++ b/ext/standard/info.c @@ -61,10 +61,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);