]> granicus.if.org Git - php/commitdiff
MF51: fix compile failure with old GCC (see bug #36931)
authorAntony Dovgal <tony2001@php.net>
Fri, 31 Mar 2006 11:11:26 +0000 (11:11 +0000)
committerAntony Dovgal <tony2001@php.net>
Fri, 31 Mar 2006 11:11:26 +0000 (11:11 +0000)
ext/standard/info.c

index 0a35556f2632f2589bc0f15b9c3a19da3a84f4be..7fb61bc69deb5eaaa0496fb559bdad4cf845ae00 100644 (file)
@@ -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);