#47879 [Opn->Bgs]: FILTER_VALIDATE_EMAIL Error

From: Date: Thu, 02 Apr 2009 21:07:20 +0000
Subject: #47879 [Opn->Bgs]: FILTER_VALIDATE_EMAIL Error
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-135501@lists.php.net to get a copy of this message
ID: 47879 Updated by: iliaa@php.net Reported By: cory dot jacobsen at zu dot com -Status: Open +Status: Bogus Bug Type: Filter related Operating System: * PHP Version: 5.2.9 New Comment: Actually you can if its an internal domain name. Previous Comments: ------------------------------------------------------------------------ [2009-04-02 15:51:54] cory dot jacobsen at zu dot com Description: ------------ Some email addresses that are obviously wrong, pass the validation with FILTER_VALIDATE_EMAIL. You can not have a top level domain with one character only. Reproduce code: --------------- var_dump(filter_var("x@y.z", FILTER_VALIDATE_EMAIL)); Expected result: ---------------- bool(false) Actual result: -------------- string(5) "x@y.z" ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=47879&edit=1

« previous php.bugs (#135501) next »