From: Ilia Alshanetsky Date: Fri, 6 Dec 2002 17:36:25 +0000 (+0000) Subject: MFH X-Git-Tag: php-4.3.0RC3~50 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=14dbf42db8fa12943463e40ad768c2973214981f;p=php MFH --- 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");