]> granicus.if.org Git - php/commitdiff
MFH
authorIlia Alshanetsky <iliaa@php.net>
Fri, 6 Dec 2002 17:36:25 +0000 (17:36 +0000)
committerIlia Alshanetsky <iliaa@php.net>
Fri, 6 Dec 2002 17:36:25 +0000 (17:36 +0000)
ext/standard/array.c

index 15a1138bc4ba2147f5c8bfe79fca7b3106828ac5..427a1ccd0439c292ff2d9a8077cd31393b99cd41 100644 (file)
@@ -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");