Re: Re: pg_execute error

From: Date: Tue, 28 Mar 2006 00:25:38 +0000
Subject: Re: Re: pg_execute error
References: 1 2 3 4 5 6 7 8  Groups: php.internals 
Request: Send a blank email to internals+get-22604@lists.php.net to get a copy of this message
Wez Furlong wrote: > Regardless of whether it's a good idea or not, you should not just go > ahead and commit such a big behaviour change to the stable branch > during the release process. > > Please revert your commit. That's good point. Any people should not depend on pg_execute's E_WARNING error in transaction, but I'll revert patch against PHP_5_1. -- Yasuo Ohgaki > > --Wez. > > On 3/27/06, Yasuo Ohgaki <yohgaki@ohgaki.net> wrote: >> Lukas Smith wrote: >>> So why dont you just do @pg_execute() and in your error handler you can do: >>> >>> function ErrorHandler($errno, $errstr, $errfile, $errline) >>> { >>> // ignore silenced function calls >>> if (!error_reporting()) { >>> return; >>> } >>> .. >>> >>> If you want a "beautiful" solution you will have to manage your prepared >>> statements in some persistant layer. >> This is one option. >> >> @ operator is ok, but usually @ operator is not recommenned. >> Don't you think so? I try not to use @ as much as possible. >> >> pg_execute() does not have to raise error just like file_exists(). >> It may be good idea to raise error when connection is bad, etc. >> >> -- >> Yasuo Ohgaki >> >> -- >> PHP Internals - PHP Runtime Development Mailing List >> To unsubscribe, visit: http://www.php.net/unsub.php >> >> > > >

« previous php.internals (#22604) next »