php-src/Zend/tests/temporary_cleaning_006.phpt

21 lines
365 B
Plaintext
Raw Normal View History

2015-07-10 08:46:57 +08:00
--TEST--
Exception after separation during indirect write to fcall result
--XFAIL--
See Bug #62210 and attempt to fix it in "tmp_livelibess" branch
2015-07-10 08:46:57 +08:00
--FILE--
<?php
function throwing() { throw new Exception; }
function getArray($x) { return [$x]; }
2015-07-10 08:46:57 +08:00
try {
getArray(0)[throwing()] = 1;
2015-07-10 08:46:57 +08:00
} catch (Exception $e) {
echo "Exception\n";
}
?>
--EXPECT--
Exception