mirror of
https://github.com/php/php-src.git
synced 2024-11-25 10:54:15 +08:00
Added test case for bug #20865.
This commit is contained in:
parent
ed7c3bfe0e
commit
3bc8512cf0
11
ext/standard/tests/array/bug20865.phpt
Normal file
11
ext/standard/tests/array/bug20865.phpt
Normal file
@ -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)
|
Loading…
Reference in New Issue
Block a user