ID: 47270 Updated by: johan...@php.net Reported By: jason at netmums dot com -Status: Open +Status: Bogus Bug Type: Filter related Operating System: RHEL 5.3 PHP Version: 5.2.8 New Comment:
Thank you for taking the time to write to us, but this is not a bug. Please double-check the documentation available at http://www.php.net/manual/ and the instructions on how to report a bug at http://bugs.php.net/how-to-report.php That domain might exist at your network. Previous Comments: ------------------------------------------------------------------------ [2009-02-02 09:44:42] jason at netmums dot com Description: ------------ An email address is submitted to filter_var and returned as valid despite the domain being invalid. There are no single character top- level domains. Reproduce code: --------------- $email = 'testu...@hotmail.co.u'; if (filter_var($email, FILTER_VALIDATE_EMAIL) === false) { echo "Invalid email address."; } else { echo "Valid email address."; } Expected result: ---------------- Invalid email address. Actual result: -------------- Valid email address. ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=47270&edit=1