|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
[2010-11-15 04:42 UTC] 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)
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sat Oct 25 18:00:02 2025 UTC |
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"