Edit report at http://bugs.php.net/bug.php?id=52334&edit=1

 ID:               52334
 User updated by:  code at margni dot com
 Reported by:      code at margni dot com
 Summary:          not allowing urls with hyphens in the domain
-Status:           Duplicate
+Status:           Closed
 Type:             Bug
 Package:          Filter related
 Operating System: *NIX
 PHP Version:      5.3.2

 New Comment:

great!


Previous Comments:
------------------------------------------------------------------------
[2010-07-14 09:19:56] code at margni dot com

fixed my email

------------------------------------------------------------------------
[2010-07-14 09:18:12] ras...@php.net

Already reported and fixed in 5.3.3

------------------------------------------------------------------------
[2010-07-14 09:15:57] code 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

Reply via email to