xref: /php-src/ext/opcache/tests/jit/bug80634.phpt (revision c16ad918)
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.protect_memory=1
8opcache.jit=function
9opcache.preload={PWD}/preload_bug80634.inc
10--EXTENSIONS--
11opcache
12--SKIPIF--
13<?php
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: Cannot modify readonly property DatePeriod::$current 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