preload_003.phpt 379 B

1234567891011121314151617181920212223
  1. --TEST--
  2. Preloading classes linked with traits
  3. --INI--
  4. opcache.enable=1
  5. opcache.enable_cli=1
  6. opcache.optimization_level=-1
  7. opcache.preload={PWD}/preload.inc
  8. --EXTENSIONS--
  9. opcache
  10. --SKIPIF--
  11. <?php
  12. if (PHP_OS_FAMILY == 'Windows') die('skip Preloading is not supported on Windows');
  13. ?>
  14. --FILE--
  15. <?php
  16. Y::foo();
  17. Y::bar();
  18. ?>
  19. OK
  20. --EXPECT--
  21. string(7) "T1::foo"
  22. string(7) "T2::bar"
  23. OK