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