1--TEST-- 2Bug #77423 (parse_url() will deliver a wrong host to user) 3--FILE-- 4<?php 5$urls = array( 6 "http://php.net\@aliyun.com/aaa.do", 7 "https://example.com\uFF03@bing.com", 8); 9foreach ($urls as $url) { 10 var_dump(filter_var($url, FILTER_VALIDATE_URL)); 11} 12?> 13--EXPECT-- 14bool(false) 15bool(false) 16