12345678910111213141516171819 |
- --TEST--
- Defining a dynamic function inside the preload script
- --INI--
- opcache.enable=1
- opcache.enable_cli=1
- opcache.optimization_level=-1
- opcache.preload={PWD}/preload_dynamic_function.inc
- --EXTENSIONS--
- opcache
- --SKIPIF--
- <?php
- if (PHP_OS_FAMILY == 'Windows') die('skip Preloading is not supported on Windows');
- ?>
- --FILE--
- <?php
- var_dump(function_exists("f"));
- ?>
- --EXPECT--
- bool(true)
|