mirror of
https://github.com/php/php-src.git
synced 2024-12-18 06:21:41 +08:00
16 lines
212 B
PHP
16 lines
212 B
PHP
--TEST--
|
|
Bug #72215.3 (Wrong return value if var modified in finally)
|
|
--FILE--
|
|
<?php
|
|
function &test() {
|
|
try {
|
|
return $a;
|
|
} finally {
|
|
$a = 2;
|
|
}
|
|
}
|
|
var_dump(test());
|
|
?>
|
|
--EXPECT--
|
|
int(2)
|