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

index 1d53d5596e3b866a2c7a9e74d38d59588c9e668d..03cf0260df8af55a46bfb10a0e5ddd023432cc9e 100644 (file)
@@ -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);