Edit report at http://bugs.php.net/bug.php?id=52334&edit=1
ID: 52334 Updated by: ras...@php.net Reported by: stephen at margni dot com Summary: not allowing urls with hyphens in the domain -Status: Open +Status: Duplicate Type: Bug Package: Filter related Operating System: *NIX PHP Version: 5.3.2 New Comment: Already reported and fixed in 5.3.3 Previous Comments: ------------------------------------------------------------------------ [2010-07-14 09:15:57] stephen at margni dot com Description: ------------ hyphen (-) is a valid character in a domain name Test script: --------------- var_dump(filter_var('http://www.foo-bar.com', FILTER_VALIDATE_URL)); Expected result: ---------------- 'http://www.foo-bar.com' Actual result: -------------- FALSE ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/bug.php?id=52334&edit=1