ID: 49652 Updated by: sjo...@php.net Reported By: riad93 at mail dot ru -Status: Open +Status: Bogus Bug Type: Filter related Operating System: * PHP Version: 5.2.11 New Comment:
Thank you for your feedback. I could not find any specification that disallows consecutive hyphens, and I did find an actual domain name with consecutive hyphens: http://www.xn--sgarr-wqa3i.com/ I guess it is allowed, so this is not a bug. Previous Comments: ------------------------------------------------------------------------ [2009-09-24 10:27:27] riad93 at mail dot ru Description: ------------ As I know double - are not allowed in domen names and usernames of email Reproduce code: --------------- var_dump(filter_var('a...@m--l.ru',FILTER_VALIDATE_EMAIL)); Expected result: ---------------- bool(false) Actual result: -------------- string(12) "a...@m--l.ru" ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=49652&edit=1