2016-11-19 107 views
-2

我想對PHP的默認錯誤處理(包括真正的錯誤,警告,通知等)進行一些細微的修改,但在其他方面會保持完全正確的行爲,包括消息格式。默認錯誤處理程序的定義是什麼?

所以,我需要定義默認錯誤處理程序來修改。

我在哪裏可以找到它?

+1

你的意思'拋出新的異常(「一些信息」);'?有關信息,請參見[手冊](http://php.net/manual/en/language.exceptions.php)。 – KDOT

回答

3
bool handler (int $errno , string $errstr [, string $errfile [, int $errline [, array $errcontext ]]]) 

你可以找到錯誤處理程序在PHP手冊的set_error_han dler()的定義:http://php.net/manual/en/function.set-error-handler.php

+0

我看不到任何頁面標識這個或任何東西作爲DEFAULT錯誤處理程序的定義。你能告訴我你在哪裏看到它嗎? – ChrisJJ

相關問題