Bug #52170 [Opn->Bgs]: FILTER_VALIDATE_EMAIL Error
| From: | aharvey@php.net | Date: | Thu, 24 Jun 2010 11:37:38 +0000 |
| Subject: | Bug #52170 [Opn->Bgs]: FILTER_VALIDATE_EMAIL Error | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-151834@lists.php.net to get a copy of this message | ||
Edit report at http://bugs.php.net/bug.php?id=52170&edit=1
ID: 52170
Updated by: aharvey@php.net
Reported by: francesco dot mortara at gmail dot com
Summary: FILTER_VALIDATE_EMAIL Error
-Status: Open
+Status: Bogus
Type: Bug
Package: *General Issues
Operating System: Windows XP Pro SP3
PHP Version: 5.3.2
New Comment:
E-mail addresses without TLDs are valid: FILTER_VALIDATE_EMAIL checks
for syntactic validity, not necessarily actual e-mailability. You may
want to look at getmxrr().
See also about half of the bugs on this list: http://p70.us/k
Previous Comments:
------------------------------------------------------------------------
[2010-06-24 12:40:43] francesco dot mortara at gmail dot com
Description:
------------
Email validation fail with php embed function filter_var.
The code below validate an email like user@domain without any TLD
Test script:
---------------
$email = filter_var('user@domain', FILTER_VALIDATE_EMAIL);
if($email === false) {
return false;
}
Expected result:
----------------
Email should be not valid
Actual result:
--------------
Email pas the validation filter
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/bug.php?id=52170&edit=1