xref: /PHP-7.2/ext/filter/tests/bug69203.phpt (revision 1e51c541)
1--TEST--
2Bug #69203 (FILTER_FLAG_STRIP_HIGH doesn't strip ASCII 127)
3--SKIPIF--
4<?php if (!extension_loaded("filter")) die("skip"); ?>
5--FILE--
6<?php
7var_dump(filter_var("\x7f", FILTER_SANITIZE_STRING, FILTER_FLAG_STRIP_HIGH));
8var_dump(filter_var("\x7f", FILTER_UNSAFE_RAW, FILTER_FLAG_STRIP_HIGH));
9var_dump(filter_var("\x7f", FILTER_SANITIZE_ENCODED, FILTER_FLAG_STRIP_HIGH));
10var_dump(filter_var("\x7f", FILTER_SANITIZE_SPECIAL_CHARS, FILTER_FLAG_STRIP_HIGH));
11?>
12--EXPECT--
13string(0) ""
14string(0) ""
15string(0) ""
16string(0) ""
17