php-src/Zend/tests/temporary_cleaning_006.phpt

19 lines
291 B
Plaintext
Raw Normal View History

2015-07-10 08:46:57 +08:00
--TEST--
Exception after separation during indirect write to fcall result
--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