From: bartos at cbox dot cz Operating system: Windows NT 5.2 build 3790 PHP version: 5.1.4 PHP Bug Type: PHP options/info functions Bug description: magic_quotes_gpc does not work per-directory
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 bug report at http://bugs.php.net/?id=37561&edit=1 -- Try a CVS snapshot (PHP 4.4): http://bugs.php.net/fix.php?id=37561&r=trysnapshot44 Try a CVS snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=37561&r=trysnapshot52 Try a CVS snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=37561&r=trysnapshot60 Fixed in CVS: http://bugs.php.net/fix.php?id=37561&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=37561&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=37561&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=37561&r=needscript Try newer version: http://bugs.php.net/fix.php?id=37561&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=37561&r=support Expected behavior: http://bugs.php.net/fix.php?id=37561&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=37561&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=37561&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=37561&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=37561&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=37561&r=dst IIS Stability: http://bugs.php.net/fix.php?id=37561&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=37561&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=37561&r=float No Zend Extensions: http://bugs.php.net/fix.php?id=37561&r=nozend MySQL Configuration Error: http://bugs.php.net/fix.php?id=37561&r=mysqlcfg