xref: /PHP-5.6/ext/filter/tests/004.phpt (revision 2c3db736)
1--TEST--
2GET/POST/REQUEST Test with filtered data
3--SKIPIF--
4<?php if (!extension_loaded("filter")) die("skip"); ?>
5--INI--
6filter.default=special_chars
7--POST--
8d="quotes"&e=\slash
9--GET--
10a=O'Henry&b=&c=<b>Bold</b>
11--FILE--
12<?php echo $_GET['a'];
13echo $_GET['b'];
14echo $_GET['c'];
15echo $_POST['d'];
16echo $_POST['e'];
17echo "\n";
18echo $_REQUEST['a'];
19echo $_REQUEST['b'];
20echo $_REQUEST['c'];
21echo $_REQUEST['d'];
22echo $_REQUEST['e'];
23?>
24--EXPECT--
25O&#39;Henry&#60;b&#62;Bold&#60;/b&#62;&#34;quotes&#34;\slash
26O&#39;Henry&#60;b&#62;Bold&#60;/b&#62;&#34;quotes&#34;\slash
27