note 79495 added to function.error-get-last
| From: | nad0r1 at hush dot ai | Date: | Fri, 30 Nov 2007 09:28:42 +0000 |
| Subject: | note 79495 added to function.error-get-last | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-132675@lists.php.net to get a copy of this message | ||
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.
----
Server IP: 72.21.46.202
Probable Submitter: 198.54.202.234
----
Manual Page -- http://www.php.net/manual/en/function.error-get-last.php
Edit -- https://master.php.net/note/edit/79495
Del: integrated -- https://master.php.net/note/delete/79495/integrated
Del: useless -- https://master.php.net/note/delete/79495/useless
Del: bad code -- https://master.php.net/note/delete/79495/bad+code
Del: spam -- https://master.php.net/note/delete/79495/spam
Del: non-english -- https://master.php.net/note/delete/79495/non-english
Del: in docs -- https://master.php.net/note/delete/79495/in+docs
Del: other reasons-- https://master.php.net/note/delete/79495
Reject -- https://master.php.net/note/reject/79495
Search -- https://master.php.net/manage/user-notes.php