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

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

update php

File size: 387 bytes
Line 
1--TEST--
2Throw in try of try/finally inside catch
3--FILE--
4<?php
5
6function test() {
7    try {
8        throw new Exception(1);
9    } catch (Exception $e) {
10        try {
11            throw new Exception(2);
12        } finally {
13        }
14    }
15}
16
17try {
18    test();
19} catch (Exception $e) {
20    echo $e, "\n";
21}
22
23?>
24--EXPECTF--
25Exception: 2 in %s:%d
26Stack trace:
27#0 %s(%d): test()
28#1 {main}
Note: See TracBrowser for help on using the repository browser.