1
0
mirror of https://github.com/php/php-src.git synced 2026-03-24 00:02:20 +01:00
Files
archived-php-src/ext/standard/tests/array/bug20865.phpt

15 lines
423 B
PHP

--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));
?>
--EXPECTF--
Deprecated: Using null as an array offset is deprecated, use an empty string instead in %s on line %d
Deprecated: Using null as the key parameter for array_key_exists() is deprecated, use an empty string instead in %s on line %d
bool(true)