php-src/Zend/tests/temporary_cleaning_006.phpt
Nikita Popov 725fed4902 Mark temporary_cleaning_006.phpt as XFAIL
And adjust it to fail even with opcode.
2015-07-10 13:33:32 +02:00

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