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

Описание

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.

Параметр

array $code

Results of debug_backtrace()

unused $params

integer $backtrace

backtrace frame.

Возвращаемое значение

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

Заметка

Эта функция должна вызываться статически.


HIVE: All information for read only. Please respect copyright!
Hosted by hive йца: йХЕБЯЙЮЪ ЦНПНДЯЙЮЪ АХАКХНРЕЙЮ