#19526 [Opn->Bgs]: can't turn magic quotes off
ID: 19526
Updated by: sander@php.net
Reported By: jayv@nortelnetworks.com
-Status: Open
+Status: Bogus
Bug Type: PHP options/info functions
Operating System: Win2K
PHP Version: 4.2.2
New Comment:
Sorry, but the bug system is not the appropriate forum for asking
support questions. Your problem does not imply a bug in PHP itself.
For a list of more appropriate places to ask for help using PHP,
please visit http://www.php.net/support.php
Thank you for your interest in PHP.
Previous Comments:
------------------------------------------------------------------------
[2002-09-20 09:41:06] jayv@nortelnetworks.com
Try this page on a server with magic_quotes_gpc on at the master level.
It seems to turn off magic quotes at the local level (the page) yet it
still adds the backslash before my single quote.
<?php
// import variables into 'p_' space
import_request_variables('gp', 'p_');
$succ = ini_set("magic_quotes_gpc","0");
if ($succ){print "Magic Quotes was set successfully<br>";}
$succ = ini_set("magic_quotes_runtime","0");
if ($succ){print "Magic Quotes Runtime was set successfully<br>";}
$var = get_magic_quotes_gpc();
print "Magic Quotes = ". $var . "<br>";
if(!isset($p_name)||$p_name==''){$p_name="O'Conner";}
?>
<form name=myForm action=test.php method=post>
<input type="text" name="name" value="<?php echo $p_name;
?>">
<input type=submit value="submit">
<p>
Keep hitting submit
</form>
<?php
print phpinfo();
?>
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=19526&edit=1
Thread (4 messages)