xref: /PHP-7.2/ext/opcache/tests/bug70207.phpt (revision 18fb424b)
1--TEST--
2Bug #70207 Finally is broken with opcache
3--INI--
4opcache.enable=1
5opcache.enable_cli=1
6opcache.optimization_level=-1
7opcache.file_update_protection=0
8--SKIPIF--
9<?php require_once('skipif.inc'); ?>
10--FILE--
11<?php
12function bar() {
13	return "bar";
14}
15function foo() {
16    try { return bar(); }
17    finally { @fclose(null); }
18}
19
20var_dump(foo());
21?>
22--EXPECT--
23string(3) "bar"
24