summaryrefslogtreecommitdiff
path: root/ext/opcache/tests/001_cli.phpt
blob: 3be1a52228ebb6854c4b442aa9a730b49c8dbdfd (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
--TEST--
001: O+ works in CLI
--INI--
opcache.enable=1
opcache.enable_cli=1
opcache.file_cache_only=0
--SKIPIF--
<?php require_once('skipif.inc'); ?>
--FILE--
<?php
$config = opcache_get_configuration();
$status = opcache_get_status();
var_dump($config["directives"]["opcache.enable"]);
var_dump($config["directives"]["opcache.enable_cli"]);
var_dump($status["opcache_enabled"]);
?>
--EXPECT--
bool(true)
bool(true)
bool(true)