From: Antony Dovgal Date: Wed, 15 Nov 2006 22:43:19 +0000 (+0000) Subject: fix array_key_exists() with NULL key in Unicode mode X-Git-Tag: RELEASE_1_0_0RC1~993 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=0ca02684c146654901bf42b601aa3aee854b48d1;p=php fix array_key_exists() with NULL key in Unicode mode --- diff --git a/ext/standard/array.c b/ext/standard/array.c index e66cfa4846..1694b481f8 100644 --- a/ext/standard/array.c +++ b/ext/standard/array.c @@ -4335,7 +4335,7 @@ PHP_FUNCTION(array_key_exists) } 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;