Bug #54403 [Opn->Bgs]: FILTER_VALIDATE_EMAIL

From: Date: Tue, 29 Mar 2011 09:41:10 +0000
Subject: Bug #54403 [Opn->Bgs]: FILTER_VALIDATE_EMAIL
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-159829@lists.php.net to get a copy of this message
Edit report at http://bugs.php.net/bug.php?id=54403&edit=1 ID: 54403 Updated by: aharvey@php.net Reported by: mariomaresca at hotmail dot it Summary: FILTER_VALIDATE_EMAIL -Status: Open +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: 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. Previous Comments: ------------------------------------------------------------------------ [2011-03-27 19:29:56] mariomaresca at hotmail dot it Description: ------------ --- From manual page: http://www.php.net/function.filter-var#Description --- filter_var with FILTER_VALIDATE_EMAIL takes as good this malformed email: "mail.@mail.com" Test script: --------------- $email='mail.@mail.com'; if (filter_var($email, FILTER_VALIDATE_EMAIL)) echo '$email is good'; else echo '$email is bad'; Expected result: ---------------- $email is bad Actual result: -------------- $email is good ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/bug.php?id=54403&edit=1

« previous php.bugs (#159829) next »