#48990 [Opn->Bgs]: get_magic_quotes_gpc returns true (int 1)
| From: | troelskn at gmail dot com | Date: | Tue, 21 Jul 2009 10:09:00 +0000 |
| Subject: | #48990 [Opn->Bgs]: get_magic_quotes_gpc returns true (int 1) | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-139996@lists.php.net to get a copy of this message | ||
ID: 48990
User updated by: troelskn at gmail dot com
Reported By: troelskn at gmail dot com
-Status: Open
+Status: Bogus
Bug Type: PHP options/info functions
Operating System: linux
PHP Version: 5.3.0
New Comment:
Not sure what is going on here, but I've gotten my hands on another
build of 5.3 and it doesn't exhibit this behaviour. In any case, I have
confused the meaning of magic_quotes_runtime. I'm closing this until I
can figure out why I was getting deprecated warnings on my own build of
php.
Previous Comments:
------------------------------------------------------------------------
[2009-07-20 19:39:40] troelskn at gmail dot com
Description:
------------
magic quotes has been deprecated from 5.3
If there is no configuration setting for magic_quotes, the function
get_magic_quotes_gpc will return true (int 1). This leads some scripts
to believe that magic quotes is on, while they are not.
Reproduce code:
---------------
$ php --version
PHP 5.3.0 (cli) (built: Jul 19 2009 02:23:09)
Copyright (c) 1997-2009 The PHP Group
$ php -r 'var_dump(get_magic_quotes_gpc());'
int(1)
$ php -r 'var_dump(get_magic_quotes_runtime());'
int(0)
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=48990&edit=1