xref: /PHP-7.0/Zend/tests/try/bug70228.phpt (revision 55a017c3)
1--TEST--
2Bug #70228 (memleak if return in finally block)
3--XFAIL--
4See https://bugs.php.net/bug.php?id=70228
5--FILE--
6<?php
7
8function foo() {
9    try { return str_repeat("a", 2); }
10    finally { return true; }
11}
12
13var_dump(foo());
14?>
15--EXPECT--
16string(3) "bar"
17