Edit report at http://bugs.php.net/bug.php?id=52170&edit=1
ID: 52170 Updated by: ras...@php.net Reported by: francesco dot mortara at gmail dot com Summary: FILTER_VALIDATE_EMAIL Error Status: Bogus Type: Bug Package: *General Issues Operating System: Windows XP Pro SP3 PHP Version: 5.3.2 New Comment: Try 5.3.3 - the email filter has been improved. Also see bug #49576 Previous Comments: ------------------------------------------------------------------------ [2010-06-24 13:37:37] ahar...@php.net E-mail addresses without TLDs are valid: FILTER_VALIDATE_EMAIL checks for syntactic validity, not necessarily actual e-mailability. You may want to look at getmxrr(). See also about half of the bugs on this list: http://p70.us/k ------------------------------------------------------------------------ [2010-06-24 12:40:43] francesco dot mortara at gmail dot com Description: ------------ Email validation fail with php embed function filter_var. The code below validate an email like u...@domain without any TLD Test script: --------------- $email = filter_var('u...@domain', FILTER_VALIDATE_EMAIL); if($email === false) { return false; } Expected result: ---------------- Email should be not valid Actual result: -------------- Email pas the validation filter ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/bug.php?id=52170&edit=1