]> granicus.if.org Git - php/commitdiff
Added test case for bug #20865.
authorIlia Alshanetsky <iliaa@php.net>
Fri, 6 Dec 2002 17:46:26 +0000 (17:46 +0000)
committerIlia Alshanetsky <iliaa@php.net>
Fri, 6 Dec 2002 17:46:26 +0000 (17:46 +0000)
ext/standard/tests/array/bug20865.phpt [new file with mode: 0644]

diff --git a/ext/standard/tests/array/bug20865.phpt b/ext/standard/tests/array/bug20865.phpt
new file mode 100644 (file)
index 0000000..f1edbab
--- /dev/null
@@ -0,0 +1,11 @@
+--TEST--
+Bug #20865 (array_key_exists and NULL key)
+--FILE--
+<?php
+       $ta = array(1, 2, 3);
+       $ta[NULL] = "Null Value";
+
+       var_dump(array_key_exists(NULL, $ta));
+?>
+--EXPECT--
+bool(true)