php-8.0.30-src/Zend/tests/temporary_cleaning_006.phpt

19 lines
291 B
PHP

--TEST--
Exception after separation during indirect write to fcall result
--FILE--
<?php
function throwing() { throw new Exception; }
function getArray($x) { return [$x]; }
try {
getArray(0)[throwing()] = 1;
} catch (Exception $e) {
echo "Exception\n";
}
?>
--EXPECT--
Exception