mirror of
https://github.com/php/php-src.git
synced 2024-09-24 11:27:28 +00:00
19 lines
287 B
PHP
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
|