PEAR_ErrorStack::setContextCallback() – Set a callback that generates context information (location of error) for an error stack


require_once 'PEAR/ErrorStack.php';

void PEAR_ErrorStack::setContextCallback ( array|string|null $contextCallback )


This method sets the callback that can be used to generate context information for an error. Passing in NULL will disable context generation and remove the expensive call to debug_backtrace()


mixed $contextCallback

A valid callback as defined by is_callable()


No exceptions thrown.


This function can not be called statically.

emulate PEAR::raiseError (Previous) Sets a default callback to be used by all error stacks (Next)
Last updated: Sat, 10 Oct 2015 — Download Documentation
Do you think that something on this page is wrong? Please file a bug report or add a note.
View this page in:

User Notes:

There are no user contributed notes for this page.