xref: /PHP-7.2/Zend/tests/try/bug71604.phpt (revision 921b3251)
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
26