php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Request #73574 FILTER_VALIDATE_EMAIL not RCF 5322 compliant
Submitted: 2016-11-21 12:43 UTC Modified: 2016-12-04 04:22 UTC
Votes:1
Avg. Score:5.0 ± 0.0
Reproduced:1 of 1 (100.0%)
Same Version:0 (0.0%)
Same OS:0 (0.0%)
From: gecko at dvp dot io Assigned:
Status: No Feedback Package: Filter related
PHP Version: Irrelevant 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 — but make sure to vote on the bug!
Your email address:
MUST BE VALID
Solve the problem:
41 - 2 = ?
Subscribe to this entry?

 
 [2016-11-21 12:43 UTC] gecko at dvp dot io
Description:
------------
FILTER_VALIDATE_EMAIL should respect the latest standard, currently this feature cannot be used and we have to build our own regexp.

Update it or remove it.


Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2016-11-21 15:32 UTC] requinix@php.net
-Status: Open +Status: Feedback
 [2016-11-21 15:32 UTC] requinix@php.net
A fully-compliant regex is ridiculous. http://pastebin.com/2ZLehM5N
Even worse, the source I used to generate that does not include support for IDNs.
Besides, a perfect regex is still not perfect. http://www.regular-expressions.info/email.html

What email address failed validation that you considered valid? And what regex have you constructed?
 [2016-12-04 04:22 UTC] php-bugs at lists dot php dot net
No feedback was provided. The bug is being suspended because
we assume that you are no longer experiencing the problem.
If this is not the case and you are able to provide the
information that was requested earlier, please do so and
change the status of the bug back to "Re-Opened". Thank you.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Tue Apr 23 19:01:31 2024 UTC