|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2009-03-25 18:52 UTC] iliaa@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Tue Nov 18 10:00:02 2025 UTC |
Description: ------------ filter_var incorrectly validates some invalid e-mail adresses (see reproduce code). Note: I am not 100% sure that this is the wrong behavior, however, it has changed from php 5.2 and I can't find a related bug or NEWS entry. Reproduce code: --------------- var_dump(filter_var('invalid@site', FILTER_VALIDATE_EMAIL)); var_dump(filter_var('invalid@site.', FILTER_VALIDATE_EMAIL)); Expected result: ---------------- bool(false) bool(false) Actual result: -------------- string(13) "invalid@site." string(12) "invalid@site"