mirror of
https://github.com/php/php-src.git
synced 2026-03-24 16:22:37 +01:00
RFC: https://wiki.php.net/rfc/deprecations_php_8_5#deprecate_using_values_null_as_an_array_offset_and_when_calling_array_key_exists
15 lines
423 B
PHP
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)
|