Re: magic_quotes_gpc on by default??

From: Date: Mon, 01 Feb 2010 19:17:47 +0000
Subject: Re: magic_quotes_gpc on by default??
References: 1 2  Groups: php.general 
Request: Send a blank email to php-general+get-301714@lists.php.net to get a copy of this message
itsa homeserver, so i recon it was ubuntu.. buncha lamers :) On Mon, Feb 1, 2010 at 7:51 PM, Ashley Sheridan <ash@ashleysheridan.co.uk>wrote: > On Mon, 2010-02-01 at 19:44 +0100, Rene Veerman wrote: > > I've just wasted a few hours by trying to find a bug in my code that > messed up my JSON-passed-on-$_GET. > I'm using fopen() so please no nagging about putting JSON in $_POST.. > > I finally found the answer; in my distro's /etc/php5/apache2/php.ini, > magic_quotes_gpc is ON. > I'd like to know why, since it's being depracted anyway: > > http://nl.php.net/manual/en/info.configuration.php#ini.magic-quotes-gpc > > I'm on > PHP 5.2.10-2ubuntu6.4 with Suhosin-Patch 0.9.7 (cli) (built: Jan 6 > 2010 22:41:56) > Copyright (c) 1997-2009 The PHP Group > Zend Engine v2.2.0, Copyright (c) 1998-2009 Zend Technologies > > > > Either Ubuntu is turning it on by default, your ISP has turned it on > (assuming it's not your own server), or someone else has turned it on at > some point. > > Thanks, > Ash > http://www.ashleysheridan.co.uk > > >

« previous php.general (#301714) next »