Doc #66553 [Ver->Csd]: FILTER_VALIDATE_EMAIL does not accept user@host addresses
| From: | cmb@php.net | Date: | Mon, 21 Nov 2016 17:28:46 +0000 |
| Subject: | Doc #66553 [Ver->Csd]: FILTER_VALIDATE_EMAIL does not accept user@host addresses | ||
| References: | 1 | Groups: | php.doc.bugs |
| Request: | Send a blank email to doc-bugs+get-14130@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: Verified
+Status: Closed
Type: Documentation Problem
Package: Filter related
PHP Version: Irrelevant
Assigned To: cmb
Block user comment: N
Private report: N
New Comment:
This bug has been fixed in the documentation's XML sources. Since the
online and downloadable versions of the documentation need some time
to get updated, we would like to ask you to be a bit patient.
Thank you for the report, and for helping us make our documentation better.
Previous Comments:
------------------------------------------------------------------------
[2016-11-21 17:28:09] cmb@php.net
Automatic comment from SVN on behalf of cmb
Revision: http://svn.php.net/viewvc/?view=revision&revision=341094
Log: Fix #66553: FILTER_VALIDATE_EMAIL does not accept user@host addresses
------------------------------------------------------------------------
[2016-11-21 17:04:38] cmb@php.net
> 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.
------------------------------------------------------------------------
[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