xref: /PHP-5.5/ext/filter/tests/bug42718.phpt (revision 45420bb6)
1--TEST--
2Bug #42718 (unsafe_raw filter not applied when configured as default filter)
3--XFAIL--
4FILTER_UNSAFE_RAW not applied when configured as default filter, even with flags
5--SKIPIF--
6<?php if (!extension_loaded("filter")) die("skip"); ?>
7--INI--
8filter.default=unsafe_raw
9filter.default_flags=4
10--GET--
11a=1%00
12--FILE--
13<?php
14echo ini_get('filter.default') . "\n";
15echo ini_get('filter.default_flags') . "\n";
16var_dump(FILTER_FLAG_STRIP_LOW == 4);
17echo addcslashes($_GET['a'],"\0") . "\n";
18?>
19--EXPECT--
20unsafe_raw
214
22bool(true)
231
24