temporary_cleaning_011.phpt 265 B

1234567891011121314151617181920
  1. --TEST--
  2. Live range & lists
  3. --FILE--
  4. <?php
  5. class A {
  6. function __destruct() {
  7. throw new Exception();
  8. }
  9. }
  10. $b = new A();
  11. $x = 0;
  12. $c = [[$x,$x]];
  13. try {
  14. list($a, $b) = $c[0];
  15. } catch (Exception $e) {
  16. echo "exception\n";
  17. }
  18. ?>
  19. --EXPECT--
  20. exception