mirror of
https://github.com/php/php-src.git
synced 2024-11-24 02:15:04 +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)
|