mirror of
https://github.com/php/php-src.git
synced 2024-09-21 18:07:23 +00:00
17 lines
221 B
Plaintext
17 lines
221 B
Plaintext
|
--TEST--
|
||
|
Bug #72215 (Wrong return value if var modified in finally)
|
||
|
--FILE--
|
||
|
<?php
|
||
|
function test() {
|
||
|
$a = 1;
|
||
|
try {
|
||
|
return $a;
|
||
|
} finally {
|
||
|
$a = 2;
|
||
|
}
|
||
|
}
|
||
|
var_dump(test());
|
||
|
?>
|
||
|
--EXPECT--
|
||
|
int(1)
|