mirror of
https://github.com/php/php-src.git
synced 2024-09-21 09:57:23 +00:00
7e080183f4
Now we flush only delayed opcodes realted to this nullsafe operator. Fixes oss-fuzz #42152
16 lines
187 B
PHP
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
|
|
}
|