bug80634.phpt 696 B

1234567891011121314151617181920212223242526
  1. --TEST--
  2. Bug #80634 (write_property handler of internal classes is skipped on preloaded JITted code)
  3. --INI--
  4. opcache.enable=1
  5. opcache.enable_cli=1
  6. opcache.file_update_protection=0
  7. opcache.jit_buffer_size=1M
  8. opcache.protect_memory=1
  9. opcache.jit=function
  10. opcache.preload={PWD}/preload_bug80634.inc
  11. --EXTENSIONS--
  12. opcache
  13. --SKIPIF--
  14. <?php
  15. if (PHP_OS_FAMILY == 'Windows') die('skip Preloading is not supported on Windows');
  16. ?>
  17. --FILE--
  18. <?php
  19. $v = new SomeClass(5);
  20. ?>
  21. --EXPECTF--
  22. Fatal error: Uncaught Error: Writing to DatePeriod->interval is unsupported in %spreload_bug80634.inc:7
  23. Stack trace:
  24. #0 %sbug80634.php(2): SomeClass->__construct(5)
  25. #1 {main}
  26. thrown in %spreload_bug80634.inc on line 7