1--TEST-- 2JIT INIT_FCALL: 002 incorrect megamorphic call detection 3--INI-- 4opcache.enable=1 5opcache.enable_cli=1 6opcache.file_update_protection=0 7opcache.jit_buffer_size=1M 8opcache.jit=tracing 9opcache.jit_max_polymorphic_calls=0 10--FILE-- 11<?php 12class C { 13 function foo($x) { 14 return $x; 15 } 16} 17function foo($x) { 18 return $x; 19} 20function test2($x) { 21 return foo(foo($x)); 22} 23function test1() { 24 $x = new C; 25 foo(foo($x->foo(foo(test2($x))))); 26} 27test1(); 28?> 29DONE 30--EXPECT-- 31DONE 32