preload_010.phpt 413 B

12345678910111213141516171819
  1. --TEST--
  2. Initializer of overwritten property should be resolved against the correct class
  3. --INI--
  4. opcache.enable=1
  5. opcache.enable_cli=1
  6. opcache.optimization_level=-1
  7. opcache.preload={PWD}/preload_overwritten_prop_init.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. var_dump((new Bar)->prop);
  17. ?>
  18. --EXPECT--
  19. int(42)