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

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

update php

File size: 415 bytes
Line 
1--TEST--
2Bug #72213 (Finally leaks on nested exceptions)
3--FILE--
4<?php
5function test() {
6    try {
7        throw new Exception(1);
8    } finally {
9        try {
10            try {
11                throw new Exception(2);
12            } finally {
13            }
14        } catch (Exception $e) {
15        }
16    }
17}
18
19try {
20    test();
21} catch (Exception $e) {
22    echo "caught {$e->getMessage()}\n";
23}
24--EXPECT--
25caught 1
Note: See TracBrowser for help on using the repository browser.