Open FabianKoestring opened 8 years ago
Am i the only person who has that strange behavior.
This repository has been closed and moved to laminas/laminas-validator; a new issue has been opened at https://github.com/laminas/laminas-validator/issues/42.
Hey there!
If i attach following validator to my validator chain and validate emails like
xxx@web.de
orxxx@googlemail.com
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: