1--TEST-- 2Preloading basic test 3--INI-- 4opcache.enable=1 5opcache.enable_cli=1 6opcache.optimization_level=-1 7opcache.preload={PWD}/preload.inc 8--EXTENSIONS-- 9opcache 10--SKIPIF-- 11<?php 12if (PHP_OS_FAMILY == 'Windows') die('skip Preloading is not supported on Windows'); 13?> 14--FILE-- 15<?php 16var_dump(function_exists("f1")); 17var_dump(function_exists("f2")); 18 19$rt = true; 20include(__DIR__ . "/preload.inc"); 21var_dump(function_exists("f2")); 22?> 23OK 24--EXPECT-- 25bool(true) 26bool(false) 27bool(true) 28OK 29