php-src/ext/filter/tests/bug39763.phpt
2007-05-07 18:03:01 +00:00

17 lines
325 B
PHP

--TEST--
Bug #39763 (filter applies magic_quotes twice in parse_str())
--INI--
magic_quotes_gpc=1
filter.default=
--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--
\"probably a bug\"
\"probably a bug\"