?
; Error handling and logging;
; Error control and registration;
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
; Error reports are reported by bit. Or add the numbers to get the expected error report level.
; E_all-all errors and warnings
; E_error-fatal runtime error
; E_warning-runtime warning (non-fatal error)
; E_parse-parsing error during compilation
; E_notice-runtime reminder (these are often caused by bugs in your code,
It may also be caused by intentional behaviors. (For example, an uninitialized variable is automatically initialized to
; Use an uninitialized variable instead of an empty string)
; E_core_error-fatal error during PHP startup Initialization
; E_core_warning-warning occurred during PHP startup initialization (non-fatal error)
; E_compile_error-fatal error during compilation
; E_compile_warning-warning during compilation (non-fatal error)
; E_user_error-error message generated by the user
; E_user_warning-user-generated warning message
; E_user_notice-user-generated reminder message
; Example:
; Error_reporting = e_all &~ E_notice; display all errors except reminders
; Error_reporting = e_compile_error | e_error | e_core_error; only errors are displayed.
Error_reporting = e_all &~ E_notice; display all errors except reminders
Display_errors = on; displays the error message (as part of the output)
On the final web site, we strongly recommend that you disable this feature and use
; Replace the error log (see below ).
; Continue to make display_errors valid at the final web site
Expose some security information, such as the file path on your web service,
Your Database plan or other information.
Display_startup_errors = off; even when display_erroes is enabled, it occurs in the PHP startup step.
.
We strongly recommend that you disable display_startup_errors,
In addition to the error correction process.
Log_errors = off; record errors in the log file (log specified by the server, stderr standard error output, or error_log (below ))
As described above, it is strongly recommended that you log errors on the final web site
; Replace direct error output.
Track_errors = off; Save the latest error/warning message in the variable $ php_errormsg (Boolean)
; Error_prepend_string = ";"; string output before the error message
; Error_append_string = ";"; string output after the error message
; Error_log = filename; record the error log in the specified file
; Error_log = syslog; record the error log in the System Log syslog (the event log under NT is invalid in Windows 95)
Warn_plus_overloading = off; warning when '+' is used as a string
Remove this item
; E_warning-runtime warning (non-fatal error)
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.