Edit report at https://bugs.php.net/bug.php?id=53312&edit=1
ID: 53312 Updated by: [email protected] Reported by: kyn at vip dot 163 dot com Summary: function filter_var has problem with [email protected] like address. -Status: No Feedback +Status: Duplicate Type: Bug Package: Strings related Operating System: centos 5.3 PHP Version: 5.3.0 Block user comment: N Private report: N New Comment: This was fixed in 5.3.3 years ago. Previous Comments: ------------------------------------------------------------------------ [2010-11-15 14:55:33] [email protected] Please try using this snapshot: http://snaps.php.net/php5.3-latest.tar.gz For Windows: http://windows.php.net/snapshots/ ------------------------------------------------------------------------ [2010-11-15 13:26:42] kyn at vip dot 163 dot com sorry, i am wrong, i use 5.3.0 ------------------------------------------------------------------------ [2010-11-15 04:48:04] [email protected] 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('[email protected]', FILTER_VALIDATE_EMAIL)); string(15) "[email protected]" ------------------------------------------------------------------------ [2010-11-15 04:42:05] kyn at vip dot 163 dot com Description: ------------ the [email protected] is truly email address, but fiilter_var didnot think the email is valid. Test script: --------------- <?php var_dump(filter_var('[email protected]', FILTER_VALIDATE_EMAIL)); ?> Expected result: ---------------- bool(true) Actual result: -------------- bool(false) ------------------------------------------------------------------------ -- Edit this bug report at https://bugs.php.net/bug.php?id=53312&edit=1
