COM handleError
提供: GeeklogJpWiki
lib-common.php>COM handleError
説明
void COM_handleError (int $errno, string $errstr, [string $errfile = ''], [int $errline = 0], [array $errcontext = ''])
エラーを処理する。
PHPにおいて発生する全てのPHPエラーを処理する。外部にパスを見せることなく、ルートユーザーにデフォルトの白紙ページをみせることなく出来る限りの情報を提供できるようにする。
CUSTOM_handleErrorがあればそれを呼ぶ。アドバイスとして本当に安定した関数でのみ、この関数のオーバーライドをしてほしい。静的で基本的なHTMLを出力することを強く推奨。
PHPをこのように処理すべき参考としてこの文書参照: http://uk2.php.net/manual/en/function.set-error-handler.php
パラメータ
- $errno
- Error Number.
- $errstr
- Error Message.
- $errfile
- The file the error was raised in.
- $errline
- The line of the file that the error was raised at.
- $errcontext
- An array that points to the active symbol table at the point the error occurred.
返り値
なし