#48808 [NEW]: Wrong e-mail format is accept with FILTER_VALIDATE_EMAIL
| From: | felipe@php.net | Date: | Sun, 05 Jul 2009 17:13:59 +0000 |
| Subject: | #48808 [NEW]: Wrong e-mail format is accept with FILTER_VALIDATE_EMAIL | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-139285@lists.php.net to get a copy of this message | ||
From: felipe@php.net
Operating system: Linux
PHP version: 5.2CVS-2009-07-05 (CVS)
PHP Bug Type: Filter related
Bug description: Wrong e-mail format is accept with FILTER_VALIDATE_EMAIL
Description:
------------
See below.
Tested with 5.2 and 5.3CVS.
Reproduce code:
---------------
var_dump(filter_var("-@a.-", FILTER_VALIDATE_EMAIL));
Expected result:
----------------
bool(false)
Actual result:
--------------
string(5) "-@a.-"
--
Edit bug report at http://bugs.php.net/?id=48808&edit=1
--
Try a CVS snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=48808&r=trysnapshot52
Try a CVS snapshot (PHP 5.3): http://bugs.php.net/fix.php?id=48808&r=trysnapshot53
Try a CVS snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=48808&r=trysnapshot60
Fixed in CVS: http://bugs.php.net/fix.php?id=48808&r=fixedcvs
Fixed in CVS and need be documented: http://bugs.php.net/fix.php?id=48808&r=needdocs
Fixed in release: http://bugs.php.net/fix.php?id=48808&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=48808&r=needtrace
Need Reproduce Script: http://bugs.php.net/fix.php?id=48808&r=needscript
Try newer version: http://bugs.php.net/fix.php?id=48808&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=48808&r=support
Expected behavior: http://bugs.php.net/fix.php?id=48808&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=48808&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=48808&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=48808&r=globals
PHP 4 support discontinued: http://bugs.php.net/fix.php?id=48808&r=php4
Daylight Savings: http://bugs.php.net/fix.php?id=48808&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=48808&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=48808&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=48808&r=float
No Zend Extensions: http://bugs.php.net/fix.php?id=48808&r=nozend
MySQL Configuration Error: http://bugs.php.net/fix.php?id=48808&r=mysqlcfg