diff options
Diffstat (limited to 'Zend/tests/try/bug71604.phpt')
-rw-r--r-- | Zend/tests/try/bug71604.phpt | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/Zend/tests/try/bug71604.phpt b/Zend/tests/try/bug71604.phpt new file mode 100644 index 0000000000..79803b93ea --- /dev/null +++ b/Zend/tests/try/bug71604.phpt @@ -0,0 +1,25 @@ +--TEST-- +Bug #71604: Aborted Generators continue after nested finally +--FILE-- +<?php +function gen() { + try { + try { + yield; + } finally { + print "INNER\n"; + } + } catch (Exception $e) { + print "EX\n"; + } finally { + print "OUTER\n"; + } + print "NOTREACHED\n"; +} + +gen()->current(); + +?> +--EXPECT-- +INNER +OUTER |