#19526 [Bgs]: can't turn magic quotes off
| From: | jayv at nortelnetworks dot com | Date: | Fri, 20 Sep 2002 16:23:46 +0000 |
| Subject: | #19526 [Bgs]: can't turn magic quotes off | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-19890@lists.php.net to get a copy of this message | ||
ID: 19526
User updated by: jayv@nortelnetworks.com
Reported By: jayv@nortelnetworks.com
Status: Bogus
Bug Type: PHP options/info functions
Operating System: Win2K
PHP Version: 4.2.2
New Comment:
How do you figure? If a function call ini_set(magic_quotes_gpc,0)
doesn't do what it is supposed to (which is turn of magic_quotes), why
is that not a bug?? Are you telling me it was design intent to have a
function that does nothing?
Previous Comments:
------------------------------------------------------------------------
[2002-09-20 11:20:27] sander@php.net
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.
------------------------------------------------------------------------
[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