magic_quotes_gpc on by default??
am 01.02.2010 19:44:11 von Rene Veerman
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
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Re: magic_quotes_gpc on by default??
am 01.02.2010 19:51:31 von Ashley Sheridan
--=-DqwS3s0kSL3uppyl/vpp
Content-Type: text/plain
Content-Transfer-Encoding: 7bit
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
--=-DqwS3s0kSL3uppyl/vpp--
Re: magic_quotes_gpc on by default??
am 01.02.2010 20:17:47 von Rene Veerman
--0015174794622dbf8d047e8ed782
Content-Type: text/plain; charset=ISO-8859-1
itsa homeserver, so i recon it was ubuntu.. buncha lamers :)
On Mon, Feb 1, 2010 at 7:51 PM, Ashley Sheridan 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
>
>
>
--0015174794622dbf8d047e8ed782--