瀏覽代碼

Merge remote branch 'stealth35/patch-1'

* stealth35/patch-1:
  checkdnsrr exits for all PHP 5.3 version
Fabien Potencier 14 年之前
父節點
當前提交
a75303029d
共有 1 個文件被更改,包括 1 次插入5 次删除
  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');
     }
 }