"Fossies" - the Fresh Open Source Software Archive

Member "php-7.4.1/ext/opcache/tests/001_cli.phpt" (17 Dec 2019, 427 Bytes) of package /linux/www/php-7.4.1.tar.xz:


As a special service "Fossies" has tried to format the requested text file into HTML format (style: standard) with prefixed line numbers. Alternatively you can here view or download the uninterpreted source code file.

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