source: src/router/php7/Zend/tests/bug72215_3.phpt @ 31874

Last change on this file since 31874 was 31874, checked in by brainslayer, 4 months ago

update php

File size: 212 bytes
Line 
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)
Note: See TracBrowser for help on using the repository browser.