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=tracing
8opcache.jit_max_polymorphic_calls=0
9--FILE--
10<?php
11class C {
12	function foo($x) {
13		return $x;
14	}
15}
16function foo($x) {
17	return $x;
18}
19function test2($x) {
20	return foo(foo($x));
21}
22function test1() {
23	$x = new C;
24	foo(foo($x->foo(foo(test2($x)))));
25}
26test1();
27?>
28DONE
29--EXPECT--
30DONE
31