PEAR_ErrorStack::setDefaultCallback() – Sets a default callback to be used by all error stacks


require_once 'PEAR/ErrorStack.php';

void PEAR_ErrorStack::setDefaultCallback ( array|string $callback = false )


This method sets the callback that can be used to generate error messages for a singleton


array|string $callback

Callback function/method


No exceptions thrown.


This function should be called statically.

Set a callback that generates context information (location of error) for an error stack (Previous) Set up a PEAR::
Log object for all error stacks that don't have one (Next)
Last updated: Fri, 27 Nov 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.