php-src/ext/filter/tests/bug39763.phpt

17 lines
425 B
Plaintext
Raw Normal View History

--TEST--
2007-05-07 18:03:01 +00:00
Bug #39763 (filter applies magic_quotes twice in parse_str())
--INI--
magic_quotes_gpc=1
2007-02-24 22:02:16 +00:00
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--
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
\"probably a bug\"
2009-05-05 13:53:11 +00:00
\"probably a bug\"