Добро пожаловать на форум PHP программистов!
За последние 24 часа нас посетил 22181 программист и 1557 роботов. Сейчас ищут 2036 программистов ...

PEAR_ErrorStack::getFileLine

Вернуться к: PEAR_ErrorStack

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.

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.



Вернуться к: PEAR_ErrorStack

© 2024 «PHP.RU — Сообщество PHP-Программистов»
Главная | Форум | Реклама на сайте | Контакты VIP Сувениры
Разработка компании ODware