source: src/router/php7/Zend/tests/temporary_cleaning_011.phpt @ 31874

Last change on this file since 31874 was 31874, checked in by brainslayer, 4 months ago

update php

File size: 248 bytes
Line 
1--TEST--
2Live range & lists
3--FILE--
4<?php
5class A {
6        function __destruct() {
7                throw new Exception();
8        }
9}
10$b = new A();
11$x = 0;
12$c = [[$x,$x]];
13try {
14        list($a, $b) = $c[0];
15} catch (Exception $e) {
16        echo "exception\n";
17}
18?>
19--EXPECT--
20exception
Note: See TracBrowser for help on using the repository browser.