mirror of
https://github.com/php/php-src.git
synced 2026-03-24 00:02:20 +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
20 lines
479 B
PHP
20 lines
479 B
PHP
--TEST--
|
|
Bug #70852 Segfault getting NULL offset of an ArrayObject
|
|
--FILE--
|
|
<?php
|
|
$y = new ArrayObject();
|
|
|
|
var_dump($y[NULL]);
|
|
var_dump($y[NULL]++);
|
|
?>
|
|
--EXPECTF--
|
|
Deprecated: Using null as an array offset is deprecated, use an empty string instead in %s on line %d
|
|
|
|
Warning: Undefined array key "" in %s on line %d
|
|
NULL
|
|
|
|
Deprecated: Using null as an array offset is deprecated, use an empty string instead in %s on line %d
|
|
|
|
Warning: Undefined array key "" in %s on line %d
|
|
NULL
|