Doc #66553 [NEW]: FILTER_VALIDATE_EMAIL does not accept user@host addresses

From: Date: Wed, 22 Jan 2014 18:22:13 +0000
Subject: Doc #66553 [NEW]: FILTER_VALIDATE_EMAIL does not accept user@host addresses
Groups: php.doc.bugs 
Request: Send a blank email to doc-bugs+get-10871@lists.php.net to get a copy of this message
From: dregad at mantisbt dot org Operating system: PHP version: Irrelevant Package: Documentation problem Bug Type: Documentation Problem Bug description:FILTER_VALIDATE_EMAIL does not accept user@host addresses 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 bug report at https://bugs.php.net/bug.php?id=66553&edit=1 -- Try a snapshot (PHP 5.4): https://bugs.php.net/fix.php?id=66553&r=trysnapshot54 Try a snapshot (PHP 5.5): https://bugs.php.net/fix.php?id=66553&r=trysnapshot55 Try a snapshot (trunk): https://bugs.php.net/fix.php?id=66553&r=trysnapshottrunk Fixed in SVN: https://bugs.php.net/fix.php?id=66553&r=fixed Fixed in release: https://bugs.php.net/fix.php?id=66553&r=alreadyfixed Need backtrace: https://bugs.php.net/fix.php?id=66553&r=needtrace Need Reproduce Script: https://bugs.php.net/fix.php?id=66553&r=needscript Try newer version: https://bugs.php.net/fix.php?id=66553&r=oldversion Not developer issue: https://bugs.php.net/fix.php?id=66553&r=support Expected behavior: https://bugs.php.net/fix.php?id=66553&r=notwrong Not enough info: https://bugs.php.net/fix.php?id=66553&r=notenoughinfo Submitted twice: https://bugs.php.net/fix.php?id=66553&r=submittedtwice register_globals: https://bugs.php.net/fix.php?id=66553&r=globals PHP 4 support discontinued: https://bugs.php.net/fix.php?id=66553&r=php4 Daylight Savings: https://bugs.php.net/fix.php?id=66553&r=dst IIS Stability: https://bugs.php.net/fix.php?id=66553&r=isapi Install GNU Sed: https://bugs.php.net/fix.php?id=66553&r=gnused Floating point limitations: https://bugs.php.net/fix.php?id=66553&r=float No Zend Extensions: https://bugs.php.net/fix.php?id=66553&r=nozend MySQL Configuration Error: https://bugs.php.net/fix.php?id=66553&r=mysqlcfg

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