1--TEST-- 2Bug GH-8461 007 (JIT does not account for function re-compile) 3--EXTENSIONS-- 4opcache 5--SKIPIF-- 6<?php 7if (PHP_OS_FAMILY === "Windows") die("skip Windows does not support preloading"); 8?> 9--INI-- 10opcache.enable=1 11opcache.enable_cli=1 12opcache.jit=1255 13opcache.file_update_protection=0 14opcache.revalidate_freq=0 15opcache.protect_memory=1 16opcache.preload={PWD}/gh8461-007.inc 17--FILE-- 18<?php 19 20for ($i = 0; $i < 100; $i++) { 21 UniqueListLast::bar(); 22} 23 24for ($i = 0; $i < 100; $i++) { 25 new UniqueListLast(); 26} 27 28for ($i = 0; $i < 10; $i++) { 29 test(); 30} 31 32print "OK"; 33?> 34--EXPECT-- 35OK 36