From 8ccdceb4db1a2e979c16b1dc7314f44c51ab7c0c Mon Sep 17 00:00:00 2001 From: Antony Dovgal Date: Fri, 31 Mar 2006 11:11:12 +0000 Subject: [PATCH] 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 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); -- 2.50.1