|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2013-08-27 11:20 UTC] cmbecker69 at gmx dot de
[2013-08-27 11:41 UTC] fleshgrinder at gmx dot at
-Status: Open
+Status: Closed
[2013-08-27 11:41 UTC] fleshgrinder at gmx dot at
[2013-08-27 17:42 UTC] rasmus@php.net
-Status: Closed
+Status: Not a bug
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sun Nov 02 16:00:01 2025 UTC |
Description: ------------ The local part of the email address is empty and the address should not validate at all. Quote from RFC 5322 section 3.4.1 about double quote usage: quoted-string = [CFWS] DQUOTE *([FWS] qcontent) [FWS] DQUOTE [CFWS] qcontent = qtext / quoted-pair qtext = %d33 / ; Printable US-ASCII %d35-91 / ; characters not including %d93-126 / ; "\" or the quote character obs-qtext quoted-pair = ("\" (VCHAR / WSP)) / obs-qp Quote from RFC 5322 section 3.4.1 about local-part: local-part = dot-atom / quoted-string / obs-local-part dot-atom = [CFWS] dot-atom-text [CFWS] dot-atom-text = 1*atext *("." 1*atext) quoted-string = [CFWS] DQUOTE *([FWS] qcontent) [FWS] DQUOTE [CFWS] obs-local-part = word *("." word) word = atom / quoted-string atom = [CFWS] 1*atext [CFWS] Test script: --------------- var_dump(filter_var('""@php.net', FILTER_VALIDATE_EMAIL)); Expected result: ---------------- bool(false) Actual result: -------------- string(""@php.net)