Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // SYNTAX ERROR:
- // when there is mistake or a typo with the way you write your code
- // for example. below is an example of a syntax error or maybe you miss
- // a semi-colon.
- if( $a == 2 {
- echo cool";
- }
- // RUNTIME ERROR:
- // this happens when your script breaks right before execution
- // LOGICAL ERROR:
- // happens when the logic to code execution is wrong, for example you want
- // your script to add 2 numbers but instead it subtracts 2 numbers, this is
- // usually the hardest to detect
- // COMPILE ERRROR:
- // happens when there is a problem interpreting the code
- // FATAL ERROR:
- // happens when your code breaks or terminates script execution
- // USER GENERATED:
- // happens when you personally trigger an error using trigger_error function
- // PARSE ERROR:
- // i forgot to mention this one but it is the same type of error as syntax error
- // whenever anyone of these errors occur PHP usually displays some kind of message like
- // E_ERROR and more, a list of below is a list
- // E_ERROR: A fatal error that causes script termination
- // E_WARNING: Run-time warning that does not cause script termination
- // E_PARSE: Compile time parse error.
- // E_NOTICE: Run time notice caused due to error in code
- // E_CORE_ERROR: Fatal errors that occur during PHP’s initial startup (installation)
- // E_CORE_WARNING: Warnings that occur during PHP’s initial startup
- // E_COMPILE_ERROR: Fatal compile-time errors indication problem with script.
- // E_USER_ERROR: User-generated error message.
- // E_USER_WARNING: User-generated warning message.
- // E_USER_NOTICE: User-generated notice message.
- // E_STRICT: Run-time notices.
- // E_RECOVERABLE_ERROR: Catchable fatal error indicating a dangerous error
- // E_ALL: Catches all errors and warnings
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement