溫馨提示×

您好,登錄后才能下訂單哦!

密碼登錄×
登錄注冊(cè)×
其他方式登錄
點(diǎn)擊 登錄注冊(cè) 即表示同意《億速云用戶(hù)服務(wù)條款》

php的錯(cuò)誤日志級(jí)別 error_report

發(fā)布時(shí)間:2020-07-14 12:23:17 來(lái)源:網(wǎng)絡(luò) 閱讀:1656 作者:小楊_Ivan 欄目:web開(kāi)發(fā)

; Error Level Constants:

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

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


; E_ERROR           - fatal run-time errors

; E_ERROR           致命的錯(cuò)誤。腳本的執(zhí)行被暫停。


; E_RECOVERABLE_ERROR  - almost fatal run-time errors

; E_RECOVERABLE_ERROR    大多數(shù)的致命錯(cuò)誤。


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

; E_WARNING         非致命的運(yùn)行時(shí)錯(cuò)誤,只是警告,腳本的執(zhí)行不會(huì)停止。


; E_PARSE           - compile-time parse errors

; E_PARSE                編譯時(shí)解析錯(cuò)誤,解析錯(cuò)誤應(yīng)該只由分析器生成。


; 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                      腳本運(yùn)行時(shí)產(chǎn)生的提醒(往往是我們寫(xiě)的腳本里面的一些bug,比如某個(gè)變量沒(méi)有定義),這個(gè)錯(cuò)誤不                                                會(huì)導(dǎo)致任務(wù)中斷。


; 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                      腳本運(yùn)行時(shí)產(chǎn)生的提醒信息,會(huì)包含一些php拋出的讓我們要如何修改的建議信息。


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

; E_CORE_ERROR                      在php啟動(dòng)后發(fā)生的致命性錯(cuò)誤


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

; E_CORE_WARNING                    在php啟動(dòng)后發(fā)生的非致命性錯(cuò)誤,也就是警告信息


; E_COMPILE_ERROR   - fatal compile-time errors

; E_COMPILE_ERROR            php編譯時(shí)產(chǎn)生的致命性錯(cuò)誤


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

; E_COMPILE_WARNING                  php編譯時(shí)產(chǎn)生的警告信息


; E_USER_ERROR      - user-generated error message

; E_USER_ERROR                       用戶(hù)生成的錯(cuò)誤


; E_USER_WARNING    - user-generated warning message

; E_USER_WARNING                        用戶(hù)生成的警告


; E_USER_NOTICE     - user-generated notice message

; E_USER_NOTICE                  用戶(hù)生成的提醒

; 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  表示錯(cuò)誤級(jí)別為E_ALL 并且除了E_NOTICE 

向AI問(wèn)一下細(xì)節(jié)

免責(zé)聲明:本站發(fā)布的內(nèi)容(圖片、視頻和文字)以原創(chuàng)、轉(zhuǎn)載和分享為主,文章觀點(diǎn)不代表本網(wǎng)站立場(chǎng),如果涉及侵權(quán)請(qǐng)聯(lián)系站長(zhǎng)郵箱:is@yisu.com進(jìn)行舉報(bào),并提供相關(guān)證據(jù),一經(jīng)查實(shí),將立刻刪除涉嫌侵權(quán)內(nèi)容。

AI