diff options
| author | Nikita Popov <nikita.ppv@gmail.com> | 2019-07-05 11:00:54 +0200 |
|---|---|---|
| committer | Nikita Popov <nikita.ppv@gmail.com> | 2019-07-05 11:00:54 +0200 |
| commit | 215e9d069c3dae40d94894d1a938d771cecc2549 (patch) | |
| tree | 875a93132ab483814ee9e996babaa46f6b248405 | |
| parent | f8d8b96e9246d9bc86c16bd9c1bed539035db4e1 (diff) | |
| parent | 24ecfcc8339d0158d5cd209b8737d8d764703ded (diff) | |
| download | php-git-215e9d069c3dae40d94894d1a938d771cecc2549.tar.gz | |
Merge branch 'PHP-7.4'
| -rw-r--r-- | ext/opcache/tests/preload_013.phpt | 18 | ||||
| -rw-r--r-- | ext/opcache/tests/preload_nested_function.inc | 7 |
2 files changed, 25 insertions, 0 deletions
diff --git a/ext/opcache/tests/preload_013.phpt b/ext/opcache/tests/preload_013.phpt new file mode 100644 index 0000000000..f6387c08e1 --- /dev/null +++ b/ext/opcache/tests/preload_013.phpt @@ -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=== diff --git a/ext/opcache/tests/preload_nested_function.inc b/ext/opcache/tests/preload_nested_function.inc new file mode 100644 index 0000000000..534e81348d --- /dev/null +++ b/ext/opcache/tests/preload_nested_function.inc @@ -0,0 +1,7 @@ +<?php + +function test() +{ + function test2() { } +} + |
