zzz_basic_logging.phpt 572 B

12345678910111213141516171819202122232425
  1. --TEST--
  2. Test basic logging for the Opcache
  3. --DESCRIPTION--
  4. This test runs a simple PHP script and ensures the Opcache
  5. outputs the correct logging at the highest log_verbosity_level
  6. --INI--
  7. opcache.enable=1
  8. opcache.enable_cli=1
  9. opcache.file_cache_only=0
  10. opcache.error_log=
  11. opcache.log_verbosity_level=4
  12. opcache.huge_code_pages=0
  13. --SKIPIF--
  14. <?php require_once('skipif.inc'); ?>
  15. --FILE--
  16. <?php
  17. echo "Foo Bar\n";
  18. opcache_reset();
  19. echo "Opcache reset";
  20. ?>
  21. --EXPECTF--
  22. %s Message Cached script '%sbasic_logging%s'
  23. Foo Bar
  24. %s Debug Restart Scheduled! Reason: user
  25. Opcache reset