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
View Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
If you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: cory dot jacobsen at zu dot com
New email:
PHP Version: OS:

 

 [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

Pull Requests

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-2024 The PHP Group
All rights reserved.
Last updated: Wed Nov 13 16:01:31 2024 UTC