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

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

update php

File size: 278 bytes
Line 
1--TEST--
2Live range & return from finally
3--FILE--
4<?php
5$array = [1];
6foreach ([0] as $_) {
7    foreach ($array as $v) {
8        try {
9                echo "ok\n";
10            return;
11        } finally {
12                echo "ok\n";
13            return;
14        }
15    }
16}
17?>
18--EXPECT--
19ok
20ok
Note: See TracBrowser for help on using the repository browser.