1--TEST-- 2Combination of strip & sanitize filters 3--EXTENSIONS-- 4filter 5--FILE-- 6<?php 7$var = 'XYZ< script>alert(/ext/filter+bypass/);< /script>ABC'; 8$a = filter_var($var, FILTER_SANITIZE_STRING, array("flags" => FILTER_FLAG_STRIP_LOW)); 9echo $a . "\n"; 10 11$var = 'XYZ< 12script>alert(/ext/filter+bypass/);< 13/script>ABC'; 14$a = filter_var($var, FILTER_SANITIZE_STRING, array("flags" => FILTER_FLAG_STRIP_LOW)); 15echo $a . "\n"; 16?> 17--EXPECTF-- 18Deprecated: Constant FILTER_SANITIZE_STRING is deprecated in %s on line %d 19XYZalert(/ext/filter+bypass/);ABC 20 21Deprecated: Constant FILTER_SANITIZE_STRING is deprecated in %s on line %d 22XYZalert(/ext/filter+bypass/);ABC 23