Issue Type: Bug Created: 2010-02-17T06:23:16.000+0000 Last Updated: 2010-02-18T11:31:52.000+0000 Status: Resolved Fix version(s): - 1.10.2 (24/Feb/10)
Reporter: Burkhard Ritter (burkhard) Assignee: Thomas Weidner (thomas) Tags: - Zend_Validate
Related issues: Attachments: - zf9201.r21072.patch
The 'mx' option of Zend_Validate_EmailAddress is practically ignored. It only has any effect, if 'deep' is set to true. More precisely, the private method '_validateMXRecords' does nothing and always returns true when 'deep' is false. This defect seems to have been introduced with r18050.
Not strictly related and perhaps my understanding of these issues is insufficient, but to me the documented behaviour of 'deep' and the implemented behaviour (again, in '_validateMXRecords') seems to be contradictory.
Lastly, I just noticed that the bug I'm reporting is captured by the unit test Zend_Validate_EmailAddressTest::testMXRecords if only one enables TESTS_ZEND_VALIDATE_ONLINE_ENABLED -- by default the test is skipped.
Posted by Michael Rehbein (tech13) on 2010-02-17T13:45:06.000+0000
Patch contains: - Fix to library to correct for failed unit test - Adjusted test email addresses in the test to use different test domains. Including using rfc2606 example domains for the Bad email domains. http://www.rfc-editor.org/rfc/rfc2606.txt
Posted by Thomas Weidner (thomas) on 2010-02-18T11:31:52.000+0000
Fixed with r21083
Have you found an issue?
See the Overview section for more details.