Annotation of embedaddon/php/ext/filter/tests/004.phpt, revision 1.1
1.1 ! misho 1: --TEST--
! 2: GET/POST/REQUEST Test with filtered data
! 3: --SKIPIF--
! 4: <?php if (!extension_loaded("filter")) die("skip"); ?>
! 5: --INI--
! 6: filter.default=special_chars
! 7: --POST--
! 8: d="quotes"&e=\slash
! 9: --GET--
! 10: a=O'Henry&b=&c=<b>Bold</b>
! 11: --FILE--
! 12: <?php echo $_GET['a'];
! 13: echo $_GET['b'];
! 14: echo $_GET['c'];
! 15: echo $_POST['d'];
! 16: echo $_POST['e'];
! 17: echo "\n";
! 18: echo $_REQUEST['a'];
! 19: echo $_REQUEST['b'];
! 20: echo $_REQUEST['c'];
! 21: echo $_REQUEST['d'];
! 22: echo $_REQUEST['e'];
! 23: ?>
! 24: --EXPECT--
! 25: O'Henry<b>Bold</b>"quotes"\slash
! 26: O'Henry<b>Bold</b>"quotes"\slash
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>