xref: /PHP-8.4/ext/filter/tests/bug64441.phpt (revision 74859783)
1--TEST--
2bug 64441, FILTER_VALIDATE_URL will invalidate a hostname that ended by dot
3--EXTENSIONS--
4filter
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