php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #47879 FILTER_VALIDATE_EMAIL Error
Submitted: 2009-04-02 15:51 UTC Modified: 2009-04-02 21:07 UTC
From: cory dot jacobsen at zu dot com Assigned:
Status: Not a bug Package: Filter related
PHP Version: 5.2.9 OS: *
Private report: No CVE-ID: None
 [2009-04-02 15:51 UTC] cory dot jacobsen at zu dot com
Description:
------------
Some email addresses that are obviously wrong, pass the validation with
FILTER_VALIDATE_EMAIL.  You can not have a top level domain with one character only.

Reproduce code:
---------------
var_dump(filter_var("x@y.z", FILTER_VALIDATE_EMAIL));

Expected result:
----------------
bool(false)

Actual result:
--------------
string(5) "x@y.z"

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2009-04-02 21:07 UTC] iliaa@php.net
Actually you can if its an internal domain name.
 
PHP Copyright © 2001-2021 The PHP Group
All rights reserved.
Last updated: Mon Dec 06 03:03:34 2021 UTC