#49441 [Opn->Csd]: filter_var - FILTER_VALIDATE_EMAIL

From: Date: Wed, 02 Sep 2009 12:31:30 +0000
Subject: #49441 [Opn->Csd]: filter_var - FILTER_VALIDATE_EMAIL
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-141855@lists.php.net to get a copy of this message
ID: 49441 Updated by: iliaa@php.net Reported By: andrew at ajohnstone dot com -Status: Open +Status: Closed Bug Type: *General Issues Operating System: Debian PHP Version: 5.2.10 New Comment: This bug has been fixed in SVN. Snapshots of the sources are packaged every three hours; this change will be in the next snapshot. You can grab the snapshot at http://snaps.php.net/. Thank you for the report, and for helping us make PHP better. Previous Comments: ------------------------------------------------------------------------ [2009-09-02 11:57:31] andrew at ajohnstone dot com Description: ------------ var_dump(filter_var('andrew@bb1.gateway.2wire.net',FILTER_VALIDATE_EMAIL)); bool(false) var_dump(filter_var('andrew@debian.gateway.2wire.net',FILTER_VALIDATE_EMAIL)); bool(false) php -v PHP 5.2.10-2 Reproduce code: --------------- var_dump(filter_var('andrew@bb1.gateway.2wire.net',FILTER_VALIDATE_EMAIL)); var_dump(filter_var('andrew@debian.gateway.2wire.net',FILTER_VALIDATE_EMAIL)); Expected result: ---------------- string(28) "andrew@bb1.gateway.2wire.net" string(31) "andrew@debian.gateway.2wire.net" Actual result: -------------- bool(false) bool(false) ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=49441&edit=1

« previous php.bugs (#141855) next »