1
0
mirror of https://github.com/php/php-src.git synced 2026-03-28 02:02:32 +01:00
Files
archived-php-src/Zend/tests/try/bug70228.phpt
2015-08-10 22:02:15 +08:00

17 lines
260 B
PHP

--TEST--
Bug #70228 (memleak if return in finally block)
--XFAIL--
See https://bugs.php.net/bug.php?id=70228
--FILE--
<?php
function foo() {
try { return str_repeat("a", 2); }
finally { return true; }
}
var_dump(foo());
?>
--EXPECT--
string(3) "bar"