previousPEAR_ErrorStack::raiseError (Previous) (Next) PEAR_ErrorStack::setDefaultCallbacknext

View this page in Last updated: Tue, 02 Jun 2009
English | Brazilian Portuguese | Chinese | Dutch | French | German | Hungarian | Japanese | Polish | Russian | Spanish | Turkish

PEAR_ErrorStack::setContextCallback

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

Synopsis

require_once 'PEAR/ErrorStack.php';

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

Description

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()

Parameter

mixed $contextCallback

A valid callback as defined by is_callable()

Throws

No exceptions thrown.

Note

This function can not be called statically.

previousPEAR_ErrorStack::raiseError (Previous) (Next) PEAR_ErrorStack::setDefaultCallbacknext

Download Documentation Last updated: Tue, 02 Jun 2009
Do you think that something on this page is wrong? Please file a bug report or add a note.
User Notes:
There are no user contributed notes for this page.