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: Sat, 16 Feb 2019 — Download Documentation
Do you think that something on this page is wrong? Please file a bug report.
View this page in:
  • English

User Notes:

There are no user contributed notes for this page.