Re: PostgreSQL patch

From: Date: Mon, 09 Jul 2001 16:11:15 +0000
Subject: Re: PostgreSQL patch
References: 1  Groups: php.pear.dev 
Request: Send a blank email to pear-dev+get-609@lists.php.net to get a copy of this message
On Mon, Jul 09, 2001 at 05:29:18PM +0200, Tomas V.V.Cox wrote : > On Monday 09 July 2001 13:32, Arjan Wekking wrote: > > If I am not mistaken, you could use $php_errormsg, which contains te > > last php error message, generated by the track_errors configuration > > directive. Unfortunately, track_errors is off by default, but it can > > be set with ini_set('track_errors','1'). It would be wise to restore > > the value to it's original php.ini settings after you have catched > > the error with ini_restore('track_errors'). I think this is a more > > elegant way to catch errors than using output buffering :] > > > > In my opinion ob_* is better solution that ini_set(), at least more > general. We had problems adding ini_set to the mysql extension because > most ISPs (all?) disables the ability to change php.ini values at > runtime. Output buffering comes installed and doesn't disturb nothing. Shouldn't this be changed in the appropriate extension to return the right errors ? I remember this was corrected in the mysql extension finally. [ Added connection error support to mysql_error() and mysql_errno() (Jason) ] - Markus -- Markus Fischer, http://guru.josefine.at/~mfischer/ EMail: mfischer@guru.josefine.at PGP Public Key: http://guru.josefine.at/~mfischer/C2272BD0.asc PGP Fingerprint: D3B0 DD4F E12B F911 3CE1 C2B5 D674 B445 C227 2BD0

« previous php.pear.dev (#609) next »