mirror of
https://github.com/php/php-src.git
synced 2024-12-25 01:40:50 +08:00
21 lines
247 B
PHP
21 lines
247 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
|