Re: PostgreSQL patch

From: Date: Mon, 09 Jul 2001 11:32:30 +0000
Subject: Re: PostgreSQL patch
Groups: php.pear.dev 
Request: Send a blank email to pear-dev+get-605@lists.php.net to get a copy of this message
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 :] - Arjan Wekking At 17:51 8-7-2001, you wrote:
Hi ppl, If nobody have problems with this patch to the pgsql extension, I'll commit in the next time. It's for catch native errors on connection. Regards,
------------------------------------------------ Arjan Wekking e-mail a.wekking@synantics.nl ------------------------------------------------ http://www.synantics.nl/ ------------------------------------------------ - Internet: - Applications - Design - Hosting - Connecting ------------------------------------------------ Synantics B.V. phone +31 (0)78 6 144 211
fax    +31 (0)78 6 144 939
adress Postbus 537
       3300 AM Dordrecht
e-mail info@synantics.nl ------------------------------------------------

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