bug78376.phpt 439 B

123456789101112131415161718192021
  1. --TEST--
  2. Bug #78376 (Incorrect preloading of constant static properties)
  3. --INI--
  4. opcache.enable=1
  5. opcache.enable_cli=1
  6. opcache.optimization_level=-1
  7. opcache.preload={PWD}/preload_bug78376.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. const CNST = 'bbbb';
  18. var_dump(\A::$a);
  19. ?>
  20. --EXPECT--
  21. string(4) "bbbb"