Skip to content
This repository has been archived by the owner on Jan 31, 2020. It is now read-only.

Commit

Permalink
Merge branch 'patch-1' of /~https://github.com/stealth35/zf2 into hotfi…
Browse files Browse the repository at this point in the history
…x/php-53-updates
  • Loading branch information
weierophinney committed May 20, 2011
11 parents f9abe33 + ffbd904 + 633cda5 + 5b7f14c + 5a4a15d + f06099b + 860f855 + b812661 + 61559f2 + 900eb07 + 6cf9a8c commit 4f17461
Showing 1 changed file with 1 addition and 17 deletions.
18 changes: 1 addition & 17 deletions src/EmailAddress.php
Original file line number Diff line number Diff line change
Expand Up @@ -242,18 +242,6 @@ public function setHostnameValidator(Hostname $hostnameValidator = null, $allow
return $this;
}

/**
* Whether MX checking via getmxrr is supported or not
*
* This currently only works on UNIX systems
*
* @return boolean
*/
public function validateMxSupported()
{
return function_exists('getmxrr');
}

/**
* Returns the set validateMx option
*
Expand All @@ -274,10 +262,6 @@ public function getValidateMx()
*/
public function setValidateMx($mx)
{
if ((bool) $mx && !$this->validateMxSupported()) {
throw new Exception\InvalidArgumentException('MX checking not available on this system');
}

$this->_options['mx'] = (bool) $mx;
return $this;
}
Expand Down Expand Up @@ -441,7 +425,7 @@ private function _validateMXRecords()
$result = getmxrr($this->_hostname, $mxHosts);
if (!$result) {
$this->_error(self::INVALID_MX_RECORD);
} else if ($this->_options['deep'] && function_exists('checkdnsrr')) {
} else if ($this->_options['deep']) {
$validAddress = false;
$reserved = true;
foreach ($mxHosts as $hostname) {
Expand Down

0 comments on commit 4f17461

Please sign in to comment.