bug78175_2.phpt 494 B

123456789101112131415161718192021222324
  1. --TEST--
  2. Bug #78175.2 (Preloading segfaults at preload time and at runtime)
  3. --INI--
  4. opcache.enable=1
  5. opcache.enable_cli=1
  6. opcache.optimization_level=-1
  7. opcache.preload={PWD}/preload_bug78175_2.inc
  8. --EXTENSIONS--
  9. opcache
  10. --SKIPIF--
  11. <?php
  12. if (PHP_OS_FAMILY == 'Windows') die('skip Preloading is not supported on Windows');
  13. if (PHP_ZTS) die('xfail GH-8588');
  14. ?>
  15. --FILE--
  16. <?php
  17. var_dump(get_class(Loader::getLoader()));
  18. var_dump(Loader::getCounter());
  19. ?>
  20. OK
  21. --EXPECT--
  22. string(6) "Loader"
  23. int(0)
  24. OK