PEAR_ErrorStack::setContextCallback

PEAR_ErrorStack::setContextCallback()

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

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.

© Copyright 2003-2023 www.php-editors.com. The ultimate PHP Editor and PHP IDE site.