note 83878 added to function.error-get-last
| From: | Brad at osu1 dot php dot net | Date: | Mon, 16 Jun 2008 18:36:24 +0000 |
| Subject: | note 83878 added to function.error-get-last | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-140509@lists.php.net to get a copy of this message | ||
It can't be completely reset, but you can "clear" it well enough for all practical
purposes:
<?php
@trigger_error("");
// do stuff...
$e=error_get_last();
if($e['message']!==''){
// An error occurred
}
?>
----
Server IP: 64.71.164.2
Probable Submitter: 65.190.106.26
----
Manual Page -- http://www.php.net/manual/en/function.error-get-last.php
Edit -- https://master.php.net/note/edit/83878
Del: integrated -- https://master.php.net/note/delete/83878/integrated
Del: useless -- https://master.php.net/note/delete/83878/useless
Del: bad code -- https://master.php.net/note/delete/83878/bad+code
Del: spam -- https://master.php.net/note/delete/83878/spam
Del: non-english -- https://master.php.net/note/delete/83878/non-english
Del: in docs -- https://master.php.net/note/delete/83878/in+docs
Del: other reasons-- https://master.php.net/note/delete/83878
Reject -- https://master.php.net/note/reject/83878
Search -- https://master.php.net/manage/user-notes.php