php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #49441 filter_var - FILTER_VALIDATE_EMAIL
Submitted: 2009-09-02 11:57 UTC Modified: 2009-09-02 12:31 UTC
From: andrew at ajohnstone dot com Assigned:
Status: Closed Package: *General Issues
PHP Version: 5.2.10 OS: Debian
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: andrew at ajohnstone dot com
New email:
PHP Version: OS:

 

 [2009-09-02 11:57 UTC] andrew at ajohnstone dot com
Description:
------------
var_dump(filter_var('andrew@bb1.gateway.2wire.net',FILTER_VALIDATE_EMAIL));
bool(false)

var_dump(filter_var('andrew@debian.gateway.2wire.net',FILTER_VALIDATE_EMAIL));
bool(false)

php -v PHP 5.2.10-2 


Reproduce code:
---------------
var_dump(filter_var('andrew@bb1.gateway.2wire.net',FILTER_VALIDATE_EMAIL));
var_dump(filter_var('andrew@debian.gateway.2wire.net',FILTER_VALIDATE_EMAIL));


Expected result:
----------------
string(28) "andrew@bb1.gateway.2wire.net"
string(31) "andrew@debian.gateway.2wire.net"

Actual result:
--------------
bool(false)
bool(false)

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2009-09-02 12:31 UTC] iliaa@php.net
This bug has been fixed in SVN.

Snapshots of the sources are packaged every three hours; this change
will be in the next snapshot. You can grab the snapshot at
http://snaps.php.net/.
 
Thank you for the report, and for helping us make PHP better.


 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Mon Jul 14 09:01:31 2025 UTC