#49652 [NEW]: FILTER_VALIDATE_EMAIL/why double - is allowed?

From: Date: Thu, 24 Sep 2009 10:27:27 +0000
Subject: #49652 [NEW]: FILTER_VALIDATE_EMAIL/why double - is allowed?
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-142812@lists.php.net to get a copy of this message
From:             riad93 at mail dot ru
Operating system: WIn Vista
PHP version:      5.2.11
PHP Bug Type:     Filter related
Bug description:  FILTER_VALIDATE_EMAIL/why double - is allowed?

Description:
------------
As I know double - are not allowed in domen names and usernames of email

Reproduce code:
---------------
var_dump(filter_var('a--b@m--l.ru',FILTER_VALIDATE_EMAIL));

Expected result:
----------------
bool(false)

Actual result:
--------------
string(12) "a--b@m--l.ru"

-- 
Edit bug report at http://bugs.php.net/?id=49652&edit=1
-- 
Try a snapshot (PHP 5.2):            http://bugs.php.net/fix.php?id=49652&r=trysnapshot52
Try a snapshot (PHP 5.3):            http://bugs.php.net/fix.php?id=49652&r=trysnapshot53
Try a snapshot (PHP 6.0):            http://bugs.php.net/fix.php?id=49652&r=trysnapshot60
Fixed in SVN:                        http://bugs.php.net/fix.php?id=49652&r=fixed
Fixed in SVN and need be documented: http://bugs.php.net/fix.php?id=49652&r=needdocs
Fixed in release:                    http://bugs.php.net/fix.php?id=49652&r=alreadyfixed
Need backtrace:                      http://bugs.php.net/fix.php?id=49652&r=needtrace
Need Reproduce Script:               http://bugs.php.net/fix.php?id=49652&r=needscript
Try newer version:                   http://bugs.php.net/fix.php?id=49652&r=oldversion
Not developer issue:                 http://bugs.php.net/fix.php?id=49652&r=support
Expected behavior:                   http://bugs.php.net/fix.php?id=49652&r=notwrong
Not enough info:                     http://bugs.php.net/fix.php?id=49652&r=notenoughinfo
Submitted twice:                     http://bugs.php.net/fix.php?id=49652&r=submittedtwice
register_globals:                    http://bugs.php.net/fix.php?id=49652&r=globals
PHP 4 support discontinued:          http://bugs.php.net/fix.php?id=49652&r=php4
Daylight Savings:                    http://bugs.php.net/fix.php?id=49652&r=dst
IIS Stability:                       http://bugs.php.net/fix.php?id=49652&r=isapi
Install GNU Sed:                     http://bugs.php.net/fix.php?id=49652&r=gnused
Floating point limitations:          http://bugs.php.net/fix.php?id=49652&r=float
No Zend Extensions:                  http://bugs.php.net/fix.php?id=49652&r=nozend
MySQL Configuration Error:           http://bugs.php.net/fix.php?id=49652&r=mysqlcfg



Thread (2 messages)

« previous php.bugs (#142812) next »