1
0
mirror of https://github.com/php/php-src.git synced 2026-03-28 18:22:42 +01:00
Files
archived-php-src/Zend/tests/try/bug70228.phpt
2016-06-08 00:23:33 +03:00

15 lines
221 B
PHP

--TEST--
Bug #70228 (memleak if return in finally block)
--FILE--
<?php
function foo() {
try { return str_repeat("a", 2); }
finally { return str_repeat("b", 2); }
}
var_dump(foo());
?>
--EXPECT--
string(2) "bb"