cvs: php-src /ext/standard array.c
| From: | Antony Dovgal | Date: | Wed, 15 Nov 2006 22:43:19 +0000 |
| Subject: | cvs: php-src /ext/standard array.c | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-41599@lists.php.net to get a copy of this message | ||
tony2001 Wed Nov 15 22:43:19 2006 UTC
Modified files:
/php-src/ext/standard array.c
Log:
fix array_key_exists() with NULL key in Unicode mode
http://cvs.php.net/viewvc.cgi/php-src/ext/standard/array.c?r1=1.392&r2=1.393&diff_format=u
Index: php-src/ext/standard/array.c
diff -u php-src/ext/standard/array.c:1.392 php-src/ext/standard/array.c:1.393
--- php-src/ext/standard/array.c:1.392 Wed Nov 15 22:09:25 2006
+++ php-src/ext/standard/array.c Wed Nov 15 22:43:19 2006
@@ -21,7 +21,7 @@
+----------------------------------------------------------------------+
*/
-/* $Id: array.c,v 1.392 2006/11/15 22:09:25 tony2001 Exp $ */
+/* $Id: array.c,v 1.393 2006/11/15 22:43:19 tony2001 Exp $ */
#include "php.h"
#include "php_ini.h"
@@ -4335,7 +4335,7 @@
}
RETURN_FALSE;
case IS_NULL:
- if (zend_hash_exists(HASH_OF(array), "", 1)) {
+ if (zend_u_hash_exists(HASH_OF(array), (UG(unicode) ? IS_UNICODE : IS_STRING), EMPTY_ZSTR, 1)) {
RETURN_TRUE;
}
RETURN_FALSE;