note 104749 deleted from class.errorexception by danbrown
| From: | danbrown@php.net | Date: | Tue, 05 Jul 2011 14:32:56 +0000 |
| Subject: | note 104749 deleted from class.errorexception by danbrown | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-181254@lists.php.net to get a copy of this message | ||
Note Submitter: ircmaxell at php dot net
----
vog at notjusthosting dot com:
The example code is correct. Notice that the third argument to Error_Exception is
"Severity". That's what the example is passing the error number as. Which is
correct if you think about it. The error level (E_NOTICE for example) is the Severity, not its
code. For PHP errors, there is no error code. Hence why 0 is passed in instead.