You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If i attach following validator to my validator chain and validate emails like [email protected] or [email protected] or simply my own domain i will get the Validator\EmailAddress::INVALID_SEGMENT message printed.
I debugged the code and found out that the call of $result = getmxrr($this->idnToAscii($this->hostname), $mxHosts, $weight); in method validateMXRecords() will return true but the $mxHosts and $weight is empty. Thats why the isValid() return false. I tested it under Windows, linux and Macintosh. Linux and Macintosh works great but Windows fails.
I tried to use $result = dns_get_record($this->idnToAscii($this->hostname), DNS_MX, $mxHosts, $weight); instead but then my php-cgi quits.
Hey there!
If i attach following validator to my validator chain and validate emails like
[email protected]
or[email protected]
or simply my own domain i will get theValidator\EmailAddress::INVALID_SEGMENT
message printed.I debugged the code and found out that the call of
$result = getmxrr($this->idnToAscii($this->hostname), $mxHosts, $weight);
in methodvalidateMXRecords()
will return true but the$mxHosts
and$weight
is empty. Thats why theisValid()
returnfalse
. I tested it under Windows, linux and Macintosh. Linux and Macintosh works great but Windows fails.I tried to use
$result = dns_get_record($this->idnToAscii($this->hostname), DNS_MX, $mxHosts, $weight);
instead but then my php-cgi quits.Linux/Macintosh:
Windows:
Originally posted by @FabianKoestring at zendframework/zend-validator#68
The text was updated successfully, but these errors were encountered: