xp-framework/xp-framework — pull request #145 by mrosoiu (2012-04-10 09:53:38+00:00)
Title: Fix stacktrace scope when calling an undefined method using call_user_func_array()

When using call_user_func_array(), an extra entry is added to the output of debug_backtrace(). This pull request tries to skip forward past this entry so that you get the same exception if you're calling:

create(new Object())->undefMethod();

or

call_user_func_array(array(new Object(), 'undefMethod'), array());

Let me know what you guys think.

Cheers,
-- Marius