php-src/Zend/tests/temporary_cleaning_011.phpt

21 lines
247 B
Plaintext
Raw Normal View History

--TEST--
Live range & lists
--FILE--
<?php
class A {
function __destruct() {
throw new Exception();
}
}
$b = new A();
$x = 0;
2018-09-17 01:16:42 +08:00
$c = [[$x,$x]];
try {
list($a, $b) = $c[0];
} catch (Exception $e) {
echo "exception\n";
}
?>
--EXPECT--
exception