Edit report at http://bugs.php.net/bug.php?id=51780&edit=1
ID: 51780 Updated by: [email protected] Reported by: srwang at pixnet dot tw Summary: FILTER_VALIDATE_URL should allow domain name with '-' -Status: Open +Status: Duplicate Type: Bug Package: Filter related Operating System: All PHP Version: 5.3.2 New Comment: This was reported and fixed before. Will be in the next release. Previous Comments: ------------------------------------------------------------------------ [2010-05-10 05:03:00] srwang at pixnet dot tw Description: ------------ FILTER_VALIDATE_URL should allow host name with '-' Test script: --------------- var_dump(filter_var('http://www.711.com.tw', FILTER_VALIDATE_URL)); var_dump(filter_var('http://www.7-11.com.tw', FILTER_VALIDATE_URL)); Expected result: ---------------- string(21) "http://www.711.com.tw" string(22) "http://www.7-11.com.tw" Actual result: -------------- string(21) "http://www.711.com.tw" bool(false) ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/bug.php?id=51780&edit=1
