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

Issue Type: Bug Created: 2010-03-10T06:58:07.000+0000 Last Updated: 2010-03-10T14:36:43.000+0000 Status: Resolved Fix version(s): - 1.10.3 (01/Apr/10)

Reporter: Burkhard Ritter (burkhard) Assignee: Thomas Weidner (thomas) Tags: - Zend_Validate

Related issues: Attachments: - EmailAddress.php.diff


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.


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.

Have you found an issue?

See the Overview section for more details.


© 2006-2018 by Zend, a Rogue Wave Company. Made with by awesome contributors.

This website is built using zend-expressive and it runs on PHP 7.