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

Last change on this file since 31874 was 31874, checked in by brainslayer, 5 weeks ago

update php

File size: 376 bytes
Line 
1--TEST--
2Bug #71604: Aborted Generators continue after nested finally
3--FILE--
4<?php
5function gen() {
6    try {
7        try {
8            yield;
9        } finally {
10            print "INNER\n";
11        }
12    } catch (Exception $e) {
13        print "EX\n";
14    } finally {
15        print "OUTER\n";
16    }
17    print "NOTREACHED\n";
18}
19
20gen()->current();
21
22?>
23--EXPECT--
24INNER
25OUTER
Note: See TracBrowser for help on using the repository browser.