|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2009-02-02 14:23 UTC] johannes@php.net
[2009-02-02 15:30 UTC] jason at netmums dot com
[2009-02-02 18:23 UTC] johannes@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sun Oct 26 03:00:01 2025 UTC |
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 = 'testuser@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.