Doc #66553 [Opn->Ver]: FILTER_VALIDATE_EMAIL does not accept user@host addresses

From: Date: Mon, 21 Nov 2016 17:04:39 +0000
Subject: Doc #66553 [Opn->Ver]: FILTER_VALIDATE_EMAIL does not accept user@host addresses
References: 1  Groups: php.doc.bugs 
Request: Send a blank email to doc-bugs+get-14129@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=66553&edit=1 ID: 66553 Updated by: cmb@php.net Reported by: dregad at mantisbt dot org Summary: FILTER_VALIDATE_EMAIL does not accept user@host addresses -Status: Open +Status: Verified Type: Documentation Problem -Package: Documentation problem +Package: Filter related PHP Version: Irrelevant -Assigned To: +Assigned To: cmb Block user comment: N Private report: N New Comment: > Will this be fixed or will there be a FILTER FLAG to distinct > between localhost / localnet mail addresses and public ones ? For now, I'm going to fix the documentation. Adding a new flag is left for request #69140. Previous Comments: ------------------------------------------------------------------------ [2016-11-21 17:02:13] cmb@php.net Related To: Bug #69140 ------------------------------------------------------------------------ [2015-01-15 10:01:41] daniel dot wendler dot hamburg at gmail dot com Will this be fixed or will there be a FILTER FLAG to distinct between localhost / localnet mail addresses and public ones ? ------------------------------------------------------------------------ [2014-01-22 18:22:13] dregad at mantisbt dot org Description: ------------ --- From manual page: http://www.php.net/filter.filters.validate --- It would be nice to document here the fact that FILTER_VALIDATE_EMAIL will reject addresses like 'user@host', despite the fact that they are valid as per RFC5322 See the discussion in https://bugs.php.net/bug.php?id=49576 (especially the last 4 entries) Test script: --------------- var_dump(filter_var('user@host', FILTER_VALIDATE_EMAIL )); Expected result: ---------------- string(9) "user@host" Actual result: -------------- bool(false) ------------------------------------------------------------------------ -- Edit this bug report at https://bugs.php.net/bug.php?id=66553&edit=1

« previous php.doc.bugs (#14129) next »