xref: /PHP-7.1/Zend/tests/try/bug70228.phpt (revision 2bae4e18)
1--TEST--
2Bug #70228 (memleak if return in finally block)
3--FILE--
4<?php
5
6function foo() {
7    try { return str_repeat("a", 2); }
8    finally { return str_repeat("b", 2); }
9}
10
11var_dump(foo());
12?>
13--EXPECT--
14string(2) "bb"
15