ZF-12349: Zend_Validate_EmailAddress incorrectly errors on valid IP for MX record
Description
Zend_Validate_EmailAddress is incorrectly erroring "INVALID_SEGMENT" on hosts where the MX record resolves to an IP address belonging to 128.0.0.0/16. As defined by IANA RFC5735, this IP range was taken out of reservation status for allocation in the usual manner by RIR's (http://tools.ietf.org/html/rfc5735) in Januar 2010. ZF 1.11.12 still has a definition in its $_invalidIp array for this range, which is now out of date and incorrect.
Comments
Posted by Adam Lundrigan (adamlundrigan) on 2012-07-31T11:38:41.000+0000
Attached patch which implements RFC5752 and RFC6598. There are no tests for this functionality...the component would need to be refactored, as there is no way to mock the MX record lookup.
Posted by Adam Lundrigan (adamlundrigan) on 2012-07-31T13:37:56.000+0000
ZF2 Pull Request: https://github.com/zendframework/zf2/pull/2060
Posted by Rob Allen (rob) on 2012-11-02T20:36:55.000+0000
Patch applied to trunk (25056) and release-1.12 (25057)