ZF-9389: Zend_Validate_EmailAddress: error message not set when 'mx' option is enabled
Description
The error message is not set when 'mx' is true. More specifically, in Zend_Validate_EmailAddress::_validateMXRecords Zend_Validate_EmailAddress::_error is never called when getmxrr returns false (i.e. when the domain has no mx entry), thus, although the validation fails no error message is set.
Comments
Posted by Burkhard Ritter (burkhard) on 2010-03-10T07:01:08.000+0000
This simple patch fixes the issue for me.
Posted by Thomas Weidner (thomas) on 2010-03-10T14:36:43.000+0000
Patch is errorous. Fixed with r21461.