Re: DB: does it check magic_quotes_gpc and automatically accomodate either ON or OFF?

From: Date: Thu, 01 Sep 2005 18:02:01 +0000
Subject: Re: DB: does it check magic_quotes_gpc and automatically accomodate either ON or OFF?
References: 1  Groups: php.pear.general 
Request: Send a blank email to pear-general+get-20728@lists.php.net to get a copy of this message
It looks like, from the reading I've done, that using autoprepare and autoexecute, or placeholders in general, will quote/escape as needed. Is that right? --- Justin Patrin <papercrane@gmail.com> wrote: > On 9/1/05, l Burnerheimerton > <lburnerheimerton@yahoo.com> wrote: > > I've searched the documentation and php files for > > magic_quotes_gpc and found nothing. So hopefully > you > > guys can help me. > > > > I develop locally with magic_quotes_gpc=ON. I > just > > learned my host has magic_quotes_gpc=OFF (I > haven't > > uploaded anything yet so I didn't know). I can > change > > that setting and I've read both sides of that > issue. > > But it's really a mute point if Pear DB checks for > the > > setting of magic_quotes_gpc and determines how it > will > > escape or addslashes appropriately. > > > > So, will DB check this and make the needed > > accomodations to allow for either > magic_quotes_gpc=ON > > or magic_quotes_gpc=OFF? > > > > Why would DB deal with magic_quotes? DB is a > database package, not a > form package. The only package (AFAIK) which handles > magic_quotes in > PEAR is HTML_QuickForm and only if you use its data > exporting > functions. magic_quotes is bad. Period. It should > never be used. Ever. > It's the wrong solution to any problem. Please read > my FAQ: > http://pear.reversefold.com/dokuwiki/doku.php?id=phpfaqs#why_is_magic_quotes_gpc_bad > > -- > Justin Patrin > > -- > PEAR General Mailing List (http://pear.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > > __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com

« previous php.pear.general (#20728) next »