Re: Re: pg_execute error

From: Date: Mon, 27 Mar 2006 16:46:07 +0000
Subject: Re: Re: pg_execute error
References: 1 2 3 4 5 6  Groups: php.internals 
Request: Send a blank email to internals+get-22600@lists.php.net to get a copy of this message
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

« previous php.internals (#22600) next »