ID: 51072 Updated by: der...@php.net Reported By: schicker03 at gmail dot com -Status: Open +Status: Feedback Bug Type: Unknown/Other Function Operating System: Linux PHP Version: 5.2.12 New Comment:
Please try using this snapshot: http://snaps.php.net/php5.2-latest.tar.gz For Windows: http://windows.php.net/snapshots/ Previous Comments: ------------------------------------------------------------------------ [2010-02-17 17:32:38] schicker03 at gmail dot com Description: ------------ An incorrect email is returned as correct from filter_var with the FILTER_VALIDATE_EMAIL option. The php version is "PHP Version 5.2.0-8+etch10" that has not been in the dropdown above so i added it here. Reproduce code: --------------- --- >From manual page: function.filter-var --- <?php /* * note the missing t in the domain part * false : @-online.de * correct: @t-online.de */ $email = "doesnotmat...@-online.de" $abc = filter_var($email, FILTER_VALIDATE_EMAIL); var_dump($abc); ?> Expected result: ---------------- The variable $abc should be the boolean value false. Actual result: -------------- The variable $abc contains the email from $email "doesnotmat...@-online.de". ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=51072&edit=1