From:             [EMAIL PROTECTED]
Operating system: Win2K
PHP version:      4.2.2
PHP Bug Type:     PHP options/info functions
Bug description:  can't turn magic quotes off

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 bug report at http://bugs.php.net/?id=19526&edit=1
-- 
Try a CVS snapshot:  http://bugs.php.net/fix.php?id=19526&r=trysnapshot
Fixed in CVS:        http://bugs.php.net/fix.php?id=19526&r=fixedcvs
Fixed in release:    http://bugs.php.net/fix.php?id=19526&r=alreadyfixed
Need backtrace:      http://bugs.php.net/fix.php?id=19526&r=needtrace
Try newer version:   http://bugs.php.net/fix.php?id=19526&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=19526&r=support
Expected behavior:   http://bugs.php.net/fix.php?id=19526&r=notwrong
Not enough info:     http://bugs.php.net/fix.php?id=19526&r=notenoughinfo
Submitted twice:     http://bugs.php.net/fix.php?id=19526&r=submittedtwice
register_globals:    http://bugs.php.net/fix.php?id=19526&r=globals

Reply via email to