xref: /PHP-7.1/ext/filter/tests/bug64441.phpt (revision 18b54a23)
1--TEST--
2bug 64441, FILTER_VALIDATE_URL will invalidate a hostname that ended by dot
3--SKIPIF--
4<?php if (!extension_loaded("filter")) die("skip"); ?>
5--FILE--
6<?php
7var_dump(filter_var('http://example.com./', FILTER_VALIDATE_URL));
8var_dump(filter_var('http://example.com/', FILTER_VALIDATE_URL));
9--EXPECT--
10string(20) "http://example.com./"
11string(19) "http://example.com/"
12