log_verbosity_bug.phpt 584 B

1234567891011121314151617181920212223
  1. --TEST--
  2. Test ACCEL_LOG_FATAL will cause the process to die even if not logged
  3. --DESCRIPTION--
  4. This test forces the opcache to error by setting file_cache_only without file_cache.
  5. The resulting ACCEL_LOG_FATAL should cause php to die.
  6. The process should die regardless of the log_verbosity_level.
  7. --INI--
  8. opcache.enable=1
  9. opcache.enable_cli=1
  10. opcache.file_cache=
  11. opcache.file_cache_only=1
  12. opcache.log_verbosity_level=-1
  13. --EXTENSIONS--
  14. opcache
  15. --SKIPIF--
  16. <?php
  17. if (getenv('SKIP_ASAN')) die('xfail Startup failure leak');
  18. ?>
  19. --FILE--
  20. <?php
  21. var_dump("Script should fail");
  22. ?>
  23. --EXPECT--