summaryrefslogtreecommitdiff
path: root/Zend/tests/bug72215.phpt
blob: 0ff16291adbd09074483c2b9ef2906eea682cf55 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
--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)