Which order does getTrace return calls?
Probably a trivial question, but in which order does Exception::getTrace
return cal开发者_StackOverflow社区ls? Most recent first or last? I'd like to know before I implement my error handler.
BenTheDesigner
Why don't you test it yourself?
function NestedFunc() {
throw new Exception("test");
}
function FunctionAbc() {
NestedFunc();
}
try {
FunctionAbc();
} catch (Exception $e) {
var_dump($e->getTrace());
}
精彩评论