Bug #53312 [Fbk->Csd]: function ffiilter_var had problem with like xx@xx.xx.com address.

From: Date: Mon, 15 Nov 2010 12:26:45 +0000
Subject: Bug #53312 [Fbk->Csd]: function ffiilter_var had problem with like xx@xx.xx.com address.
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-156047@lists.php.net to get a copy of this message
Edit report at http://bugs.php.net/bug.php?id=53312&edit=1

 ID:                 53312
 User updated by:    kyn at vip dot 163 dot com
 Reported by:        kyn at vip dot 163 dot com
 Summary:            function ffiilter_var had problem with like
                     xx@xx.xx.com address.
-Status:             Feedback
+Status:             Closed
 Type:               Bug
 Package:            Strings related
 Operating System:   centos 5.3
-PHP Version:        5.3.3
+PHP Version:        5.3.0
 Block user comment: N

 New Comment:

sorry, i am wrong, i use 5.3.0


Previous Comments:
------------------------------------------------------------------------
[2010-11-15 04:48:04] rasmus@php.net

Are you sure you are using PHP 5.3.3?  I just tested your code here and
it works 
fine on PHP 5.3.3/Centos:

12:35pm vm:~> php -v
PHP 5.3.3 (cli) (built: Oct 20 2010 15:24:49) 
12:35pm vm:~> php -a
Interactive shell

php > var_dump(filter_var('bob@vip.163.com', FILTER_VALIDATE_EMAIL));
string(15) "bob@vip.163.com"

------------------------------------------------------------------------
[2010-11-15 04:42:05] kyn at vip dot 163 dot com

Description:
------------
the bob@vip.163.com is truly email address, but fiilter_var didnot think
the email is valid.


Test script:
---------------
<?php
var_dump(filter_var('bob@vip.163.com', FILTER_VALIDATE_EMAIL));
?>



Expected result:
----------------
bool(true)

Actual result:
--------------
bool(false)


------------------------------------------------------------------------



-- 
Edit this bug report at http://bugs.php.net/bug.php?id=53312&edit=1


Thread (6 messages)

« previous php.bugs (#156047) next »