[Validator] Removed unnecessary check as symfony require php >= 5.3.3.

This commit is contained in:
Grégoire Pineau 2013-08-10 10:41:36 +02:00
parent bcd7ab1eae
commit cf31dfb080

View File

@ -41,11 +41,6 @@ class EmailValidator extends ConstraintValidator
if ($valid) {
$host = substr($value, strpos($value, '@') + 1);
if (version_compare(PHP_VERSION, '5.3.3', '<') && strpos($host, '.') === false) {
// Likely not a FQDN, bug in PHP FILTER_VALIDATE_EMAIL prior to PHP 5.3.3
$valid = false;
}
// Check for host DNS resource records
if ($valid && $constraint->checkMX) {
$valid = $this->checkMX($host);