|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2015-02-27 20:46 UTC] aharvey@php.net
[2015-02-27 20:50 UTC] aharvey@php.net
[2015-03-01 18:18 UTC] info at linux-web-development dot de
[2015-03-02 00:16 UTC] ppaisndud at gmail dot com
[2016-11-21 17:02 UTC] cmb@php.net
-Summary: FILTER_VALIDATE_EMAIL not RFC 822 compliant
+Summary: FILTER_VALIDATE_EMAIL does not accept user@localhost
-Type: Bug
+Type: Feature/Change Request
[2016-11-21 17:02 UTC] cmb@php.net
[2016-11-21 17:02 UTC] cmb@php.net
-Summary: FILTER_VALIDATE_EMAIL does not accept user@localhost
+Summary: FILTER_VALIDATE_EMAIL should accept user@localhost
[2016-11-22 12:12 UTC] bugs-php-net at unikorn dot me
[2016-11-24 07:43 UTC] yohgaki@php.net
|
|||||||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Wed Oct 29 17:00:02 2025 UTC |
Description: ------------ When trying to validate an e-mail address using FILTER_VALIDATE_EMAIL will result in several problems with correct mail addresses. So far I could find the following compliant addresses not validating: foo@example foo@(bar)example.com foo@example.com(bar) Generally PHP should at comply with RFC 822 when validating mail addresses, otherwise the filter function is useless. Test script: --------------- var_dump(filter_var('foo@example', FILTER_VALIDATE_EMAIL)); Expected result: ---------------- string(11) "foo@example" Actual result: -------------- bool(false)