tony2001 Tue Aug 8 18:06:43 2006 UTC
Modified files:
/php-src/ext/standard array.c
Log:
fix logic and memleak
http://cvs.php.net/viewvc.cgi/php-src/ext/standard/array.c?r1=1.381&r2=1.382&diff_format=u
Index: php-src/ext/standard/array.c
diff -u php-src/ext/standard/array.c:1.381 php-src/ext/standard/array.c:1.382
--- php-src/ext/standard/array.c:1.381 Tue Aug 8 16:59:11 2006
+++ php-src/ext/standard/array.c Tue Aug 8 18:06:43 2006
@@ -21,7 +21,7 @@
+----------------------------------------------------------------------+
*/
-/* $Id: array.c,v 1.381 2006/08/08 16:59:11 tony2001 Exp $ */
+/* $Id: array.c,v 1.382 2006/08/08 18:06:43 tony2001 Exp $ */
#include "php.h"
#include "php_ini.h"
@@ -1504,7 +1504,7 @@
UChar *norm;
int norm_len;
- if (!zend_normalize_identifier(&norm, &norm_len, key.u,
key_len, 0)) {
+ if (zend_normalize_identifier(&norm, &norm_len, key.u,
key_len, 0) == FAILURE) {
zend_error(E_WARNING, "Could not normalize
variable name: %r", key);
} else if (norm != key.u) {
key.u = norm;
--
PHP CVS Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php