<?php
class Test
{
public function a()
{
$this->b();
}
public function b()
{
$this->c();
}
public function c()
{
$this->d();
}
public function d()
{
$this->e();
}
public function e()
{
var_dump(debug_backtrace(DEBUG_BACKTRACE_IGNORE_ARGS, 2));
}
}
$test = new Test();
$test->a();
Warning: debug_backtrace() expects at most 1 parameter, 2 given in /in/UQYXL on line 27
NULL
Output for 5.2.5 - 5.2.17, 5.3.0 - 5.3.5
Notice: Use of undefined constant DEBUG_BACKTRACE_IGNORE_ARGS - assumed 'DEBUG_BACKTRACE_IGNORE_ARGS' in /in/UQYXL on line 27
Warning: debug_backtrace() expects at most 1 parameter, 2 given in /in/UQYXL on line 27
NULL
Notice: Use of undefined constant DEBUG_BACKTRACE_IGNORE_ARGS - assumed 'DEBUG_BACKTRACE_IGNORE_ARGS' in /in/UQYXL on line 27
Warning: Wrong parameter count for debug_backtrace() in /in/UQYXL on line 27
NULL
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/UQYXL 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/UQYXL 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/UQYXL on line 5
Process exited with code 255.