summaryrefslogtreecommitdiff
path: root/ext/opcache/tests/preload_001.phpt
blob: 56ed196e99e96dce7aeceefbe80e0dd0f3b798a5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
--TEST--
Preloading basic test
--INI--
opcache.enable=1
opcache.enable_cli=1
opcache.optimization_level=-1
opcache.preload={PWD}/preload.inc
--SKIPIF--
<?php
require_once('skipif.inc');
if (PHP_OS_FAMILY == 'Windows') die('skip Preloading is not supported on Windows');
?>
--FILE--
<?php
var_dump(function_exists("f1"));
var_dump(function_exists("f2"));

$rt = true;
include(__DIR__ . "/preload.inc");
var_dump(function_exists("f2"));
?>
OK
--EXPECTF--
bool(true)
bool(false)
bool(true)
OK