cvs: php-src(PHP_5_1) /ext/standard info.c
| From: | Antony Dovgal | Date: | Fri, 31 Mar 2006 11:11:12 +0000 |
| Subject: | cvs: php-src(PHP_5_1) /ext/standard info.c | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-37610@lists.php.net to get a copy of this message | ||
tony2001 Fri Mar 31 11:11:12 2006 UTC
Modified files: (Branch: PHP_5_1)
/php-src/ext/standard info.c
Log:
fix compile failure with old GCC (see bug #36931)
http://cvs.php.net/viewcvs.cgi/php-src/ext/standard/info.c?r1=1.249.2.9&r2=1.249.2.10&diff_format=u
Index: php-src/ext/standard/info.c
diff -u php-src/ext/standard/info.c:1.249.2.9 php-src/ext/standard/info.c:1.249.2.10
--- php-src/ext/standard/info.c:1.249.2.9 Thu Mar 30 19:58:18 2006
+++ php-src/ext/standard/info.c Fri Mar 31 11:11:12 2006
@@ -18,7 +18,7 @@
+----------------------------------------------------------------------+
*/
-/* $Id: info.c,v 1.249.2.9 2006/03/30 19:58:18 tony2001 Exp $ */
+/* $Id: info.c,v 1.249.2.10 2006/03/31 11:11:12 tony2001 Exp $ */
#include "php.h"
#include "php_ini.h"
@@ -61,10 +61,12 @@
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);