xref: /PHP-8.0/ext/filter/tests/bug64441.phpt (revision 7aacc705)
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?>
10--EXPECT--
11string(20) "http://example.com./"
12string(19) "http://example.com/"
13