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

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

update php

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