mirror of
https://github.com/php/php-src.git
synced 2024-12-02 22:34:55 +08:00
21 lines
265 B
PHP
21 lines
265 B
PHP
--TEST--
|
|
Live range & lists
|
|
--FILE--
|
|
<?php
|
|
class A {
|
|
function __destruct() {
|
|
throw new Exception();
|
|
}
|
|
}
|
|
$b = new A();
|
|
$x = 0;
|
|
$c = [[$x,$x]];
|
|
try {
|
|
list($a, $b) = $c[0];
|
|
} catch (Exception $e) {
|
|
echo "exception\n";
|
|
}
|
|
?>
|
|
--EXPECT--
|
|
exception
|