php的錯誤記錄檔層級 error_report

來源:互聯網
上載者:User

標籤:php的錯誤記錄檔層級 error_report

; Error Level Constants:

; E_ALL             - All errors and warnings (includes E_STRICT as of PHP 5.4.0)

; E_ALL             所有錯誤和警告(除E_STRICT外)


; E_ERROR           - fatal run-time errors

; E_ERROR           致命的錯誤。指令碼的執行被暫停。


; E_RECOVERABLE_ERROR  - almost fatal run-time errors

; E_RECOVERABLE_ERROR    大多數的致命錯誤。


; E_WARNING         - run-time warnings (non-fatal errors)

; E_WARNING         非致命的執行階段錯誤,只是警告,指令碼的執行不會停止。


; E_PARSE           - compile-time parse errors

; E_PARSE                編譯時間解析錯誤,解析錯誤應該只由分析器產生。


; E_NOTICE          - run-time notices (these are warnings which often result from a bug in your code,                                         but it‘s possible that it was intentional (e.g., using an uninitialized variable and                                             relying on the fact it‘s automatically initialized to an empty string)

; E_NOTICE                      指令碼運行時產生的提醒(往往是我們寫的指令碼裡面的一些bug,比如某個變數沒有定義),這個錯誤不                                                會導致任務中斷。


; E_STRICT          - run-time notices, enable to have PHP suggest changes    to your code which will                                         ensure the best interoperability    and forward compatibility of your code

; E_STRICT                      指令碼運行時產生的提醒資訊,會包含一些php拋出的讓我們要如何修改的建議資訊。


; E_CORE_ERROR      - fatal errors that occur during PHP‘s initial startup

; E_CORE_ERROR                      在php啟動後發生的致命性錯誤


; E_CORE_WARNING    - warnings (non-fatal errors) that occur during PHP‘s nitial startup

; E_CORE_WARNING                    在php啟動後發生的非致命性錯誤,也就是警告資訊


; E_COMPILE_ERROR   - fatal compile-time errors

; E_COMPILE_ERROR            php編譯時間產生的致命性錯誤


; E_COMPILE_WARNING -     compile-time warnings (non-fatal errors)

; E_COMPILE_WARNING                  php編譯時間產生的警告資訊


; E_USER_ERROR      - user-generated error message

; E_USER_ERROR                       使用者產生的錯誤


; E_USER_WARNING    - user-generated warning message

; E_USER_WARNING                        使用者產生的警告


; E_USER_NOTICE     - user-generated notice message

; E_USER_NOTICE                  使用者產生的提醒

; E_DEPRECATED      - warn about code that will not work in future versions    of PHP


; E_USER_DEPRECATED     - user-generated deprecation warnings



& 表示並且
~ 表示非
| 表示或者

比如: error_reporting  =  E_ALL & ~E_NOTICE  表示錯誤層級為E_ALL 並且除了E_NOTICE 

本文出自 “小楊” 部落格,請務必保留此出處http://aqiang.blog.51cto.com/6086626/1895910

php的錯誤記錄檔層級 error_report

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.