Skip to content

Commit 24ecfcc

Browse files
committed
Add test
Forgot to commit this.
1 parent ea43624 commit 24ecfcc

File tree

2 files changed

+25
-0
lines changed

2 files changed

+25
-0
lines changed

ext/opcache/tests/preload_013.phpt

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
--TEST--
2+
Nested function definition
3+
--INI--
4+
opcache.enable=1
5+
opcache.enable_cli=1
6+
opcache.optimization_level=-1
7+
opcache.preload={PWD}/preload_nested_function.inc
8+
opcache.interned_strings_buffer=0
9+
--SKIPIF--
10+
<?php require_once('skipif.inc'); ?>
11+
--FILE--
12+
<?php
13+
test();
14+
test2();
15+
?>
16+
===DONE===
17+
--EXPECT--
18+
===DONE===
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
<?php
2+
3+
function test()
4+
{
5+
function test2() { }
6+
}
7+

0 commit comments

Comments
 (0)