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