|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #49652 FILTER_VALIDATE_EMAIL alllows double -
Submitted: 2009-09-24 10:27 UTC Modified: 2009-09-24 19:50 UTC
From: riad93 at mail dot ru Assigned:
Status: Not a bug Package: Filter related
PHP Version: 5.2.11 OS: *
Private report: No CVE-ID: None
View Add Comment Developer Edit
Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know!
Just going to say 'Me too!'? Don't clutter the database with that please !
Your email address:
Solve the problem:
48 - 35 = ?
Subscribe to this entry?

 [2009-09-24 10:27 UTC] riad93 at mail dot ru
As I know double - are not allowed in domen names and usernames of email

Reproduce code:

Expected result:

Actual result:
string(12) ""


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2009-09-24 19:50 UTC]
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:

I guess it is allowed, so this is not a bug.
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu May 23 00:01:31 2024 UTC