note 51291 added to function.set-error-handler
| From: | jgiglio at netmar dot com | Date: | Sat, 26 Mar 2005 04:02:58 +0000 |
| Subject: | note 51291 added to function.set-error-handler | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-87002@lists.php.net to get a copy of this message | ||
set_error_handler also overrides the default behavior of postgresql which is to shoot HTML errors to
the browser on a query failure or other database error.
I can't find a list of symbolic $errno names for postgres errors, but a normal "bad
query" throws an errno of 2.
Be careful to not use an empty default case in your errno case statement if you use postgresql, and
expect php to generate DB errors automatically.
----
Manual Page -- http://www.php.net/manual/en/function.set-error-handler.php
Edit -- http://master.php.net/manage/user-notes.php?action=edit+51291
Delete: added to the manual -- http://master.php.net/manage/user-notes.php?action=delete+51291&report=yes&reason=added+to+the+manual
Delete: bad code -- http://master.php.net/manage/user-notes.php?action=delete+51291&report=yes&reason=bad+code
Delete: spam -- http://master.php.net/manage/user-notes.php?action=delete+51291&report=yes&reason=spam
Delete: useless -- http://master.php.net/manage/user-notes.php?action=delete+51291&report=yes&reason=useless
Delete: other reasons -- http://master.php.net/manage/user-notes.php?action=delete+51291&report=yes
Reject -- http://master.php.net/manage/user-notes.php?action=reject+51291&report=yes
Search -- http://master.php.net/manage/user-notes.php