ZF2-130: preg_match() expects parameter 2 to be string, array given in ZendFramework/library/Zend/Validator/EmailAddress.php on line 315


If we enable mxRecord checking for email address this error occurs.


Could you please provide some sample code which reproduces your issue? The Zend\Validate\EmailAddress component contains some unit tests which test the MX record-checking functionality, and they pass when I run against master:

[webadmin@spiral tests]$ phpunit --filter MX Zend/Validator/EmailAddressTest
PHPUnit 3.6.7 by Sebastian Bergmann.
Time: 0 seconds, Memory: 6.75Mb
OK (2 tests, 10 assertions)

Seems like it is fixed on Jan 06, 2012 by cgdangelo :)