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