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

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

update php

File size: 221 bytes
Line 
1--TEST--
2Bug #72215 (Wrong return value if var modified in finally)
3--FILE--
4<?php
5function test() {
6    $a = 1;
7    try {
8        return $a;
9    } finally {
10        $a = 2;
11    }
12}
13var_dump(test());
14?>
15--EXPECT--
16int(1)
Note: See TracBrowser for help on using the repository browser.