Re: Adding E_WARNING to pg_unescape_bytea()

From: Date: Tue, 02 Jul 2013 10:34:34 +0000
Subject: Re: Adding E_WARNING to pg_unescape_bytea()
References: 1 2  Groups: php.internals 
Request: Send a blank email to internals+get-68034@lists.php.net to get a copy of this message
Hi Matteo, 2013/7/2 Matteo Beccati <php@beccati.com> > Raising an E_WARNING will most likely mean that it needs to be > suppressed in some way, which I think is not necessary. > > I'm all for returning false when the input is invalid. However, given > the behaviour change, I suppose it would be PHP 5.next material. > If pg_unecape_bytea() returns FALSE, it means there is obvious bug or some kind of attack. Users should be prepared for unexpected errors not only pg_escape_bytea() but also many other functions anyway. It does not hart any application, so it's good to have 5.5. IMHO. Regards, -- Yasuo Ohgaki yohgaki@ohgaki.net

« previous php.internals (#68034) next »