2006-12-08 17:50:04 +00:00
|
|
|
--TEST--
|
2007-05-07 18:03:01 +00:00
|
|
|
Bug #39763 (filter applies magic_quotes twice in parse_str())
|
2006-12-08 17:50:04 +00:00
|
|
|
--INI--
|
|
|
|
magic_quotes_gpc=1
|
2007-02-24 22:02:16 +00:00
|
|
|
filter.default=
|
2006-12-08 17:50:04 +00:00
|
|
|
--FILE--
|
|
|
|
<?php
|
|
|
|
$arr = array();
|
|
|
|
parse_str("val=%22probably+a+bug%22", $arr);
|
|
|
|
echo $arr['val'] . "\n";
|
|
|
|
parse_str("val=%22probably+a+bug%22");
|
|
|
|
echo $val . "\n";
|
|
|
|
?>
|
|
|
|
--EXPECT--
|
2009-05-05 13:53:11 +00:00
|
|
|
PHP Warning: Directive 'magic_quotes_gpc' is deprecated in PHP 5.3 and greater in Unknown on line 0
|
2006-12-08 17:50:04 +00:00
|
|
|
\"probably a bug\"
|
2009-05-05 13:53:11 +00:00
|
|
|
\"probably a bug\"
|