Re: PostgreSQL patch

From: Date: Sun, 08 Jul 2001 17:42:14 +0000
Subject: Re: PostgreSQL patch
References: 1 2  Groups: php.pear.dev 
Request: Send a blank email to pear-dev+get-599@lists.php.net to get a copy of this message
KOYAMA Tetsuji wrote: > > At Sun, 08 Jul 2001 17:51:08 +0200, > Tomas V.V.Cox <cox@idecnet.com> wrote: > > 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. > > Please don't use output buffering in PEAR DB. > Because many japanese people use output bufferring for mbstring to > covert character encoding. > But output buff functions are reentrant, so doesn't disturb other opened buffers. Try for example: <?php ob_start(); echo "Hello"; // this is a new buffer ob_start(); echo "the error was"; $buf2 = ob_get_contents(); ob_end_flush(); $buf1 = ob_get_contents(); ob_end_flush(); echo "Original: $buf1\n"; echo "Error: $buf2\n"; ?> I won't commit it if I'm wrong. Regards, Tomas V.V.Cox

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