php-src/Zend/tests/bug72215_3.phpt

16 lines
212 B
Plaintext
Raw Normal View History

2016-07-14 01:04:47 +08:00
--TEST--
Bug #72215.3 (Wrong return value if var modified in finally)
--FILE--
<?php
function &test() {
try {
return $a;
2016-07-14 01:04:47 +08:00
} finally {
$a = 2;
}
}
var_dump(test());
?>
--EXPECT--
int(2)