From: Arne dot Heizmann at csr dot com
Operating system: Windows 2000
PHP version: 4.3.11
PHP Bug Type: PHP options/info functions
Bug description: ini_set has no effect for magic_quotes_gpc
Description:
------------
I have tried
ini_set ('magic_quotes_gpc', 0);
and
ini_set ('magic_quotes_gpc', 'Off');
and various others, but I still get those stupid backslashes.
Reproduce code:
---------------
ini_set ('magic_quotes_gpc', 0);
echo '<pre>'. get_array_val ('x', $_POST) . '</pre>';
echo "<form action='/test2.php' method='post'>
<input type='text' name='x' value=''' />
<input type='submit' />
</form>";
Expected result:
----------------
Upon submitting the form, you should see an apostrophe.
Actual result:
--------------
You see a backslash followed by an apostrophe.
--
Edit bug report at http://bugs.php.net/?id=32867&edit=1
--
Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=32867&r=trysnapshot4
Try a CVS snapshot (php5.0):
http://bugs.php.net/fix.php?id=32867&r=trysnapshot50
Try a CVS snapshot (php5.1):
http://bugs.php.net/fix.php?id=32867&r=trysnapshot51
Fixed in CVS: http://bugs.php.net/fix.php?id=32867&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=32867&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=32867&r=needtrace
Need Reproduce Script: http://bugs.php.net/fix.php?id=32867&r=needscript
Try newer version: http://bugs.php.net/fix.php?id=32867&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=32867&r=support
Expected behavior: http://bugs.php.net/fix.php?id=32867&r=notwrong
Not enough info:
http://bugs.php.net/fix.php?id=32867&r=notenoughinfo
Submitted twice:
http://bugs.php.net/fix.php?id=32867&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=32867&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=32867&r=php3
Daylight Savings: http://bugs.php.net/fix.php?id=32867&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=32867&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=32867&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=32867&r=float
No Zend Extensions: http://bugs.php.net/fix.php?id=32867&r=nozend
MySQL Configuration Error: http://bugs.php.net/fix.php?id=32867&r=mysqlcfg