previousPEAR_ErrorStack::getErrors (Previous) (Next) PEAR_ErrorStack::getMessageCallbacknext

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::getFileLine

PEAR_ErrorStack::getFileLine() – Standard file/line number/function/class context callback

Synopsis

require_once 'PEAR/ErrorStack.php';

array|false PEAR_ErrorStack::getFileLine ( array $code , unused $params , integer $backtrace = null )

Description

This function uses a backtrace generated from debug_backtrace and so will not work at all in PHP < 4.3.0. The frame should reference the frame that contains the source of the error.

Parameter

array $code

Results of debug_backtrace()

unused $params

integer $backtrace

backtrace frame.

Return value

returns either array('file' => file, 'line' => line, 'function' => function name, 'class' => class name) or if this doesn't work, then false

Throws

throws no exceptions thrown

Note

This function should be called statically.

previousPEAR_ErrorStack::getErrors (Previous) (Next) PEAR_ErrorStack::getMessageCallbacknext

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.