From 0ca02684c146654901bf42b601aa3aee854b48d1 Mon Sep 17 00:00:00 2001 From: Antony Dovgal Date: Wed, 15 Nov 2006 22:43:19 +0000 Subject: [PATCH] fix array_key_exists() with NULL key in Unicode mode --- ext/standard/array.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; -- 2.50.1