xref: /PHP-8.1/Zend/tests/bug72215_3.phpt (revision e6f04d4c)
1--TEST--
2Bug #72215.3 (Wrong return value if var modified in finally)
3--FILE--
4<?php
5function &test() {
6    try {
7        return $a;
8    } finally {
9        $a = 2;
10    }
11}
12var_dump(test());
13?>
14--EXPECT--
15int(2)
16