From 14dbf42db8fa12943463e40ad768c2973214981f Mon Sep 17 00:00:00 2001 From: Ilia Alshanetsky Date: Fri, 6 Dec 2002 17:36:25 +0000 Subject: [PATCH] MFH --- ext/standard/array.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/ext/standard/array.c b/ext/standard/array.c index 15a1138bc4..427a1ccd04 100644 --- a/ext/standard/array.c +++ b/ext/standard/array.c @@ -3475,6 +3475,11 @@ PHP_FUNCTION(array_key_exists) RETURN_TRUE; } RETURN_FALSE; + case IS_NULL: + if (zend_hash_exists(HASH_OF(*array), "", 1)) { + RETURN_TRUE; + } + RETURN_FALSE; default: php_error_docref(NULL TSRMLS_CC, E_WARNING, "The first argument should be either a string or an integer"); -- 2.50.1