mirror of
https://github.com/php/php-src.git
synced 2024-12-03 14:54:40 +08:00
725fed4902
And adjust it to fail even with opcode.
21 lines
365 B
PHP
21 lines
365 B
PHP
--TEST--
|
|
Exception after separation during indirect write to fcall result
|
|
--XFAIL--
|
|
See Bug #62210 and attempt to fix it in "tmp_livelibess" branch
|
|
--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
|