note 79495 deleted from function.error-get-last by felipe
| From: | felipe@php.net | Date: | Sun, 16 Dec 2007 01:38:03 +0000 |
| Subject: | note 79495 deleted from function.error-get-last by felipe | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-133622@lists.php.net to get a copy of this message | ||
Note Submitter: nad0r1 at hush dot ai
----
Regarding the comment below.
PHP Version 5.2.2
and with error_reporting(E_ERROR | E_PARSE); it will still display "all" errors.
Anyways, I do not think this is sufficient to be a bug.
You could easily avoid displaying such errors using a script such as;
<?php
// your script and stuff
if (error_get_last()) {
$error = error_get_last();
if ($error['type'] != 8)
echo '<table width="60%"><tr class="bad"><td>' .
$error['line'] . ':</td><td>' . $error['message'] .
'</td>
</tr></table>
<hr>';
}
?>
It will just check the type of error, and if it is a "E_NOTICE"(8) it will not display the
error.