Bug #53722 [Com]: FILTER_VALIDATE_EMAIL fails on numeric TLDs
| From: | deadalnix at gmail dot com | Date: | Mon, 13 Jun 2011 19:53:34 +0000 |
| Subject: | Bug #53722 [Com]: FILTER_VALIDATE_EMAIL fails on numeric TLDs | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-161375@lists.php.net to get a copy of this message | ||
Edit report at http://bugs.php.net/bug.php?id=53722&edit=1
ID: 53722
Comment by: deadalnix at gmail dot com
Reported by: romain dot riviere at gmail dot com
Summary: FILTER_VALIDATE_EMAIL fails on numeric TLDs
Status: Bogus
Type: Bug
Package: Filter related
Operating System: Linux
PHP Version: 5.3.5
Block user comment: N
Private report: N
New Comment:
Hi,
I want to enlight the PHP team about https://www.42registry.org/ . This TLD is more and more
recognized and used, and we will reach a point where not supporting numerical TLD will be a major
problem.
Previous Comments:
------------------------------------------------------------------------
[2011-03-21 03:02:54] barkerjr at barkerjr dot net
This bug should be reopened. We don't want PHP to be broken in the event that a
numeric TLD is created.
------------------------------------------------------------------------
[2011-02-18 16:24:09] romain dot riviere at gmail dot com
Precisely. FILTER_VALIDATE_EMAIL should validate *technically* correct email
addresses, not just ICANN-correct ones.
It is already the case for .foo or .bar TLDs, it just needs to do the same for
numeric TLDs, because from a technical point of view, there are no different: old
restrictions in old RFCs have all been superseded now.
------------------------------------------------------------------------
[2011-02-13 23:30:16] frank9321 at gmail dot com
I think that Romain in right. There are numeric TLDs (like the .42 TLD wich is taking off), and
sometimes, as Romain said, you use such TLDs in your LAN.
So, really, the FILTER_VALIDATE_EMAIL should accept numeric TLDs. It isn't because the ICANN
said that there couldn't be numeric TLDs that there aren't.
------------------------------------------------------------------------
[2011-01-18 14:15:16] romain dot riviere at gmail dot com
There ARE numeric TLDs, even though they are not made public. I have one on my
LAN.
The filter should probably not rely on what is believed to exist, but on what is
technically feasible.
In other words, if I can get email on the address johndoe@domain.123 (and again,
YES, it works), then FILTER_VALIDATE_EMAIL should not reject such an address.
------------------------------------------------------------------------
[2011-01-18 14:03:15] iliaa@php.net
Thank you for taking the time to write to us, but this is not
a bug. Please double-check the documentation available at
http://www.php.net/manual/ and the instructions on how to
report
a bug at http://bugs.php.net/how-to-report.php
There are no numeric TLDs, the e-mail filters supports IP based e-mail addresses
however.
------------------------------------------------------------------------
The remainder of the comments for this report are too long. To view
the rest of the comments, please view the bug report online at
http://bugs.php.net/bug.php?id=53722
--
Edit this bug report at http://bugs.php.net/bug.php?id=53722&edit=1