note 102031 rejected from filter.filters.validate by danbrown
| From: | danbrown@php.net | Date: | Mon, 24 Jan 2011 14:30:52 +0000 |
| Subject: | note 102031 rejected from filter.filters.validate by danbrown | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-176245@lists.php.net to get a copy of this message | ||
Note Submitter: chris at inventis dot be
----
PHP5.3.2 also allows incomplete emailadresses (without domain extension)
The exact same code Clifton posted yields this result overhere:
<?php
$email = "clifton@example"; //Note the .com missing
echo "PHP Version: ".phpversion().'<br>';
if(filter_var($email, FILTER_VALIDATE_EMAIL)){
echo $email.'<br>';
var_dump(filter_var($email, FILTER_VALIDATE_EMAIL));
}else{
var_dump(filter_var($email, FILTER_VALIDATE_EMAIL));
}
?>
PHP Version: 5.3.2-1ubuntu4.5
clifton@example
string(15) "clifton@example"