php-src/Zend/tests/bug81216_2.phpt
Dmitry Stogov 7e080183f4 Fix crush after compilation of nullsafe operator introduced in 307e476e86
Now we flush only delayed opcodes realted to this nullsafe operator.

Fixes oss-fuzz #42152
2021-12-09 18:15:47 +03:00

16 lines
187 B
PHP

--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
}