PEAR_ErrorStack::setDefaultCallback

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

Synopsis

require_once 'PEAR/ErrorStack.php';

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

Description

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

Parameter

array|string $callback

Callback function/method

Throws

No exceptions thrown.

Note

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: Thu, 30 Oct 2014 — 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.