#46759 [NEW]: magic_quotes_gpc doesn't work
| From: | vrana@php.net | Date: | Fri, 05 Dec 2008 11:52:06 +0000 |
| Subject: | #46759 [NEW]: magic_quotes_gpc doesn't work | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-131621@lists.php.net to get a copy of this message | ||
From: vrana@php.net
Operating system: Windows
PHP version: 5.2.7
PHP Bug Type: Variables related
Bug description: magic_quotes_gpc doesn't work
Description:
------------
magic_quotes_gpc doesn't escape $_GET, $_POST, $_COOKIE and $_REQUEST
variables. It worked with the same configuration under 5.2.6.
I have magic_quotes_gpc set in php.ini.
Reproduce code:
---------------
URL: ?q='
<?php
var_dump(PHP_VERSION);
var_dump(get_magic_quotes_gpc());
var_dump($_GET["q"]);
Expected result:
----------------
string(5) "5.2.7"
int(1)
string(2) "\'"
Actual result:
--------------
string(5) "5.2.7"
int(1)
string(2) "'"
--
Edit bug report at http://bugs.php.net/?id=46759&edit=1
--
Try a CVS snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=46759&r=trysnapshot52
Try a CVS snapshot (PHP 5.3): http://bugs.php.net/fix.php?id=46759&r=trysnapshot53
Try a CVS snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=46759&r=trysnapshot60
Fixed in CVS: http://bugs.php.net/fix.php?id=46759&r=fixedcvs
Fixed in CVS and need be documented: http://bugs.php.net/fix.php?id=46759&r=needdocs
Fixed in release: http://bugs.php.net/fix.php?id=46759&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=46759&r=needtrace
Need Reproduce Script: http://bugs.php.net/fix.php?id=46759&r=needscript
Try newer version: http://bugs.php.net/fix.php?id=46759&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=46759&r=support
Expected behavior: http://bugs.php.net/fix.php?id=46759&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=46759&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=46759&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=46759&r=globals
PHP 4 support discontinued: http://bugs.php.net/fix.php?id=46759&r=php4
Daylight Savings: http://bugs.php.net/fix.php?id=46759&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=46759&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=46759&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=46759&r=float
No Zend Extensions: http://bugs.php.net/fix.php?id=46759&r=nozend
MySQL Configuration Error: http://bugs.php.net/fix.php?id=46759&r=mysqlcfg