mirror of
https://github.com/php/php-src.git
synced 2024-11-23 18:04:36 +08:00
Add test
Forgot to commit this.
This commit is contained in:
parent
ea43624972
commit
24ecfcc833
18
ext/opcache/tests/preload_013.phpt
Normal file
18
ext/opcache/tests/preload_013.phpt
Normal file
@ -0,0 +1,18 @@
|
||||
--TEST--
|
||||
Nested function definition
|
||||
--INI--
|
||||
opcache.enable=1
|
||||
opcache.enable_cli=1
|
||||
opcache.optimization_level=-1
|
||||
opcache.preload={PWD}/preload_nested_function.inc
|
||||
opcache.interned_strings_buffer=0
|
||||
--SKIPIF--
|
||||
<?php require_once('skipif.inc'); ?>
|
||||
--FILE--
|
||||
<?php
|
||||
test();
|
||||
test2();
|
||||
?>
|
||||
===DONE===
|
||||
--EXPECT--
|
||||
===DONE===
|
7
ext/opcache/tests/preload_nested_function.inc
Normal file
7
ext/opcache/tests/preload_nested_function.inc
Normal file
@ -0,0 +1,7 @@
|
||||
<?php
|
||||
|
||||
function test()
|
||||
{
|
||||
function test2() { }
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user