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

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

PEAR_ErrorStack::getFileLine

PEAR_ErrorStack::getFileLine() – ファイル名 / 行番号 / 関数名 / クラス名 を取得する、 標準のコンテキストコールバック

Synopsis

require_once 'PEAR/ErrorStack.php';

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

Description

この関数は、 debug_backtrace の出力を利用するため、PHP < 4.3.0 では動作しません。frame は、エラーの発生元を含むものを 参照しなければなりません。

Parameter

array $code

debug_backtrace() の出力結果。

unused $params

integer $backtrace

バックトレースのフレーム。

Return value

成功した場合に array('file' => ファイル名, 'line' => 行番号, 'function' => 関数名, 'class' => クラス名) を、 失敗した場合に false を返します。

Throws

例外はスローされません。

Note

This function should be called statically.

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

Download Documentation Last updated: Sun, 21 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.