note 90258 deleted from errorfunc.examples by irchtml
| From: | irchtml@php.net | Date: | Tue, 30 Nov 2010 07:37:37 +0000 |
| Subject: | note 90258 deleted from errorfunc.examples by irchtml | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-174463@lists.php.net to get a copy of this message | ||
Note Submitter: Henry Paradiz
----
<?php
switch ($errno) {
/* Fatal run-time errors.
* These indicate errors that can not be recovered from, such as a memory allocation problem.
* Execution of the script is halted.
*/
case E_ERROR:
break;
/* Run-time warnings (non-fatal errors).
* Execution of the script is not halted.
*/
case E_WARNING:
break;
/* Compile-time parse errors.
* Parse errors should only be generated by the parser.
*/
case E_PARSE:
break;
/* Run-time notices.
* Indicate that the script encountered something that could indicate an error, but could also
happen in the normal course of running a script.
*/
case E_NOTICE:
break;
/* Fatal errors that occur during PHP's initial startup.
* This is like an E_ERROR, except it is generated by the core of PHP.
*/
case E_CORE_ERROR:
break;
/* Warnings (non-fatal errors) that occur during PHP's initial startup.
* This is like an E_WARNING, except it is generated by the core of PHP.
*/
case E_CORE_WARNING:
break;
/* Fatal compile-time errors.
* This is like an E_ERROR, except it is generated by the Zend Scripting Engine.
*/
case E_COMPILE_ERROR:
break;
/* Compile-time warnings (non-fatal errors).
* This is like an E_WARNING, except it is generated by the Zend Scripting Engine.
*/
case E_COMPILE_WARNING:
break;
/* User-generated error message.
* This is like an E_ERROR, except it is generated in PHP code by
* using the PHP function trigger_error().
*/
case E_USER_ERROR:
break;
/* User-generated warning message.
* This is like an E_WARNING, except it is generated in PHP code by
* using the PHP function trigger_error().
*/
case E_USER_WARNING:
break;
/* User-generated notice message.
* This is like an E_NOTICE, except it is generated in PHP code by
* using the PHP function trigger_error().
*/
case E_USER_NOTICE:
break;
/* Enable to have PHP suggest changes to your code which will ensure the
* best interoperability and forward compatibility of your code.
*/
case E_STRICT:
break;
/* Catchable fatal error. It indicates that a probably dangerous
* error occured, but did not leave the Engine in an unstable state.
* If the error is not caught by a user defined handle (see also
* set_error_handler()), the application aborts as it was an E_ERROR.
*/
case E_RECOVERABLE_ERROR:
break;
/* Run-time notices. Enable this to receive warnings about code that
* will not work in future versions.
*/
case E_DEPRECATED:
break;
/* User-generated warning message. This is like an E_DEPRECATED, except it
* is generated in PHP code by using the PHP function trigger_error().
*/
case E_USER_DEPRECATED:
break;
?>