preload_011.phpt 677 B

12345678910111213141516171819202122232425262728
  1. --TEST--
  2. Argument/return types must be available for preloading
  3. --INI--
  4. opcache.enable=1
  5. opcache.enable_cli=1
  6. opcache.optimization_level=-1
  7. opcache.preload={PWD}/preload_variance_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. ?>
  14. --FILE--
  15. <?php
  16. interface K {}
  17. interface L extends K {}
  18. require __DIR__ . '/preload_variance.inc';
  19. $a = new A;
  20. $b = new B;
  21. $d = new D;
  22. $f = new F;
  23. $g = new G;
  24. ?>
  25. --EXPECTF--
  26. Warning: Can't preload unlinked class H: Could not check compatibility between H::method($a): L and G::method($a): K, because class L is not available in %spreload_variance.inc on line 43