Edit report at https://bugs.php.net/bug.php?id=61012&edit=1
ID: 61012 User updated by: sucotronic at gmail dot com Reported by: sucotronic at gmail dot com Summary: filter_var don't pass valid email address Status: Not a bug Type: Bug Package: Mail related Operating System: linux ubuntu 10.04 PHP Version: 5.3SVN-2012-02-08 (snap) Block user comment: N Private report: N New Comment: More exactly, my version is: 5.3.2-1ubuntu4.11 Previous Comments: ------------------------------------------------------------------------ [2012-02-08 16:49:29] [email protected] Unable to reproduce in 5.3/5.4: php > echo filter_var("[email protected]", FILTER_VALIDATE_EMAIL); [email protected] Make sure you are actually trying this in 5.3. This may have been broken in 5.2, but was fixed years ago in 5.3. ------------------------------------------------------------------------ [2012-02-08 14:58:45] sucotronic at gmail dot com Description: ------------ If you use the filter_var function to test an email address, and the address starts with the '+' sign, it's marked as invalid, but it isn't. Test script: --------------- filter_var("[email protected]", FILTER_VALIDATE_EMAIL) Expected result: ---------------- Return the string and not false. Actual result: -------------- false ------------------------------------------------------------------------ -- Edit this bug report at https://bugs.php.net/bug.php?id=61012&edit=1
