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-- 8magic_quotes_gpc=0 9filter.default=unsafe_raw 10filter.default_flags=4 11--GET-- 12a=1%00 13--FILE-- 14<?php 15echo ini_get('filter.default') . "\n"; 16echo ini_get('filter.default_flags') . "\n"; 17var_dump(FILTER_FLAG_STRIP_LOW == 4); 18echo addcslashes($_GET['a'],"\0") . "\n"; 19?> 20--EXPECT-- 21unsafe_raw 224 23bool(true) 241 25