001_cli.phpt 401 B

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