summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAntony Dovgal <tony2001@php.net>2006-03-31 11:11:12 +0000
committerAntony Dovgal <tony2001@php.net>2006-03-31 11:11:12 +0000
commit8ccdceb4db1a2e979c16b1dc7314f44c51ab7c0c (patch)
treeaf14e87f63cec9c3ec4bf56d20fddd651b9ec56c
parentea9487249b975ef11ba571cdd54ec0c734cbde39 (diff)
downloadphp-git-8ccdceb4db1a2e979c16b1dc7314f44c51ab7c0c.tar.gz
fix compile failure with old GCC (see bug #36931)
-rw-r--r--ext/standard/info.c6
1 files 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);