Edit report at http://bugs.php.net/bug.php?id=54403&edit=1

 ID:                 54403
 User updated by:    mariomaresca at hotmail dot it
 Reported by:        mariomaresca at hotmail dot it
 Summary:            FILTER_VALIDATE_EMAIL
 Status:             Bogus
 Type:               Bug
 Package:            Filter related
 Operating System:   windows 7
 PHP Version:        5.3.6
 Block user comment: N
 Private report:     N

 New Comment:

Stop saying that's is a valid email.



Try to valid it with gmail.com Google will say [a-z]. isn't valid in any
case.


Previous Comments:
------------------------------------------------------------------------
[2011-04-11 18:25:12] tomas dot brastavicius at quantum dot lt

Status of this issue should be changed to Feedback.



We are discussing whether email address ma...@mail.com is valid as per
RFC 2822, but the test script works as expected, i.e.
filter_var('ma...@mail.com', FILTER_VALIDATE_EMAIL) returns false.

I have checked this against 5.3.3 and the latest trunk, both on Linux.



Perhaps this is Windows specific bug ?

------------------------------------------------------------------------
[2011-03-30 15:29:14] carsten_sttgt at gmx dot de

@aharvey

> That's a valid e-mail address: RFC 2822



According to RFC 2822 and this topic FILTER_VALIDATE_EMAIL is working
wrong ("ma...@mail.com" isn't a valid e-mail address, see the answer
from Tomas).



BTW:

FILTER_VALIDATE_EMAIL is working according to RFC2822? In the manual I
can't read which rules are used for validating e-mails.

------------------------------------------------------------------------
[2011-03-29 16:28:49] dtajchre...@php.net

Once the expected/correct behavior is agreed upon, we should also add a
test case 

for this. filter's behavior has been inconsistent across the last 10+
releases.

------------------------------------------------------------------------
[2011-03-29 15:18:29] tomas dot brastavicius at quantum dot lt

It is not correct. Address contains no characters other than atext
characters or "." surrounded by atext.



dot-atom = [CFWS] dot-atom-text [CFWS]

dot-atom-text = 1*atext *("." 1*atext)



Reference, http://tools.ietf.org/html/rfc2822#section-3.2.4

------------------------------------------------------------------------
[2011-03-29 11:41:10] ahar...@php.net

That's a valid e-mail address: RFC 2822 only requires the local part to
be a valid dot-atom, and dot-atom elements may end with a period.

------------------------------------------------------------------------


The remainder of the comments for this report are too long. To view
the rest of the comments, please view the bug report online at

    http://bugs.php.net/bug.php?id=54403


-- 
Edit this bug report at http://bugs.php.net/bug.php?id=54403&edit=1

Reply via email to