xref: /PHP-5.3/ext/filter/tests/bug39763.phpt (revision 3d107d07)
1--TEST--
2Bug #39763 (filter applies magic_quotes twice in parse_str())
3--SKIPIF--
4<?php if (!extension_loaded("filter")) die("skip"); ?>
5--INI--
6magic_quotes_gpc=1
7filter.default=
8--FILE--
9<?php
10$arr = array();
11parse_str("val=%22probably+a+bug%22", $arr);
12echo $arr['val'] . "\n";
13parse_str("val=%22probably+a+bug%22");
14echo $val . "\n";
15?>
16--EXPECT--
17Deprecated: Directive 'magic_quotes_gpc' is deprecated in PHP 5.3 and greater in Unknown on line 0
18\"probably a bug\"
19\"probably a bug\"
20