ZF-9389: Zend_Validate_EmailAddress: error message not set when 'mx' option is enabled


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.


This simple patch fixes the issue for me.

Patch is errorous. Fixed with r21461.