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
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
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: Sun Nov 24 07:02:12 2024 UTC