Browse Source

checkdnsrr exits for all PHP 5.3 version

stealth35 14 years ago
parent
commit
61b23a5a68
1 changed files with 1 additions and 5 deletions
  1. 1 5
      src/Symfony/Component/Validator/Constraints/EmailValidator.php

+ 1 - 5
src/Symfony/Component/Validator/Constraints/EmailValidator.php

@@ -62,10 +62,6 @@ class EmailValidator extends ConstraintValidator
      */
     private function checkMX($host)
     {
-        if (function_exists('checkdnsrr')) {
-            return checkdnsrr($host, 'MX');
-        }
-
-        throw new \LogicException('Could not retrieve DNS record information. Remove check_mx = true to prevent this warning');
+        return checkdnsrr($host, 'MX');
     }
 }