note 124428 added to language.errors.php7

From: Date: Sun, 24 Nov 2019 14:38:15 +0000
Subject: note 124428 added to language.errors.php7
Groups: php.notes 
Request: Send a blank email to php-notes+get-213244@lists.php.net to get a copy of this message
<?php set_error_handler(function(int $number, string $message) { echo "Handler captured error $number: '$message'" . PHP_EOL ; }); try { echo $x; # notice, handled on callable pg_exec(null, null); # warning, handled on callable fho(); # fatal error, stop running and catched } catch (Throwable $e) { echo "Captured Throwable: " . $e->getMessage() . PHP_EOL; } ?> set_error_handler will also works without try and catch ---- Server IP: 208.43.231.9 Probable Submitter: 82.199.157.54 (proxied: 168.0.234.115) ---- Manual Page -- http://php.net/manual/en/language.errors.php7.php Edit -- https://master.php.net/note/edit/124428 Del: integrated -- https://master.php.net/note/delete/124428/integrated Del: useless -- https://master.php.net/note/delete/124428/useless Del: bad code -- https://master.php.net/note/delete/124428/bad+code Del: spam -- https://master.php.net/note/delete/124428/spam Del: non-english -- https://master.php.net/note/delete/124428/non-english Del: in docs -- https://master.php.net/note/delete/124428/in+docs Del: other reasons-- https://master.php.net/note/delete/124428 Reject -- https://master.php.net/note/reject/124428 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#213244) next »