php-src/Zend/tests/temporary_cleaning_006.phpt
2015-07-10 03:46:57 +03:00

19 lines
287 B
PHP

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