<?php
class Test
{
public function a()
{
b();
}
public function b()
{
c();
}
public function c()
{
d();
}
public function d()
{
e();
}
public function e()
{
var_dump(debug_backtrace(DEBUG_BACKTRACE_IGNORE_ARGS, 2));
}
}
$test = new Test();
$test->a();
Fatal error: Uncaught Error: Call to undefined function b() in /in/CIsaU:7
Stack trace:
#0 /in/CIsaU(33): Test->a()
#1 {main}
thrown in /in/CIsaU on line 7
Process exited with code 255.
Fatal error: Call to undefined function b() in /in/CIsaU on line 7
Process exited with code 255.
Output for 4.4.2 - 4.4.9
Parse error: syntax error, unexpected T_STRING, expecting T_OLD_FUNCTION or T_FUNCTION or T_VAR or '}' in /in/CIsaU on line 5
Process exited with code 255.
Parse error: parse error, unexpected T_STRING, expecting T_OLD_FUNCTION or T_FUNCTION or T_VAR or '}' in /in/CIsaU on line 5
Process exited with code 255.
Output for 4.3.2 - 4.3.4
Parse error: parse error, expecting `T_OLD_FUNCTION' or `T_FUNCTION' or `T_VAR' or `'}'' in /in/CIsaU on line 5
Process exited with code 255.