php-src/Zend/tests/bug81216_2.phpt

16 lines
187 B
Plaintext
Raw Permalink Normal View History

--TEST--
Bug #81216_2: Nullsafe operator leaks dynamic property name
--FILE--
<?php
$a = [null];
$a[1] = $a[0]?->x;
var_dump($a);
?>
--EXPECT--
array(2) {
[0]=>
NULL
[1]=>
NULL
}