preload_006.phpt 563 B

123456789101112131415161718192021
  1. --TEST--
  2. Handling of errors during linking
  3. --INI--
  4. opcache.enable=1
  5. opcache.enable_cli=1
  6. opcache.optimization_level=-1
  7. opcache.preload={PWD}/preload_inheritance_error_ind.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 (getenv('SKIP_ASAN')) die('xfail Startup failure leak');
  14. ?>
  15. --FILE--
  16. <?php
  17. echo "Foobar\n";
  18. ?>
  19. --EXPECTF--
  20. Warning: Can't preload unlinked class B: Declaration of B::foo($bar) must be compatible with A::foo() in %spreload_inheritance_error.inc on line 8
  21. Foobar