note 51291 deleted from function.set-error-handler by cmb

From: Date: Sun, 13 Oct 2019 07:30:00 +0000
Subject: note 51291 deleted from function.set-error-handler by cmb
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-212588@lists.php.net to get a copy of this message
Note Submitter: jgiglio at netmar dot com ---- 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.

« previous php.notes (#212588) next »