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;
-- PHP CVS Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php