#37561 [Opn->Fbk]: magic_quotes_gpc does not work per-directory
ID: 37561
Updated by: tony2001@php.net
Reported By: bartos at cbox dot cz
-Status: Open
+Status: Feedback
Bug Type: PHP options/info functions
Operating System: Windows NT 5.2 build 3790
PHP Version: 5.1.4
New Comment:
Please try using this CVS snapshot:
http://snaps.php.net/php5.2-latest.tar.gz
For Windows:
http://snaps.php.net/win32/php5.2-win32-latest.zip
Previous Comments:
------------------------------------------------------------------------
[2006-05-23 12:58:48] bartos at cbox dot cz
Description:
------------
The same bug as #30527 (http://bugs.php.net/bug.php?id=30527) but now
regarding PHP v5.
Description: (copy from #30527)
When magic_quotes_gpc is controlled per-directory through the
registry,
the return code from get_magic_quotes_gpc() reflects the change, but
the
contents of $_GET, $_POST and $_COOKIE remain escaped or not escaped
according to the setting in php.ini.
The code below was run with magic_quotes_gpc=on in php.ini and
magic_quotes_gpc="0" in the registry for the folder in which the
script
resides.
Reproduce code:
---------------
the code, expected result and actual result are the same as in #30527
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=37561&edit=1
Thread (2 messages)