ZF-258: Implement Zend_Filter::isEmail()

Issue Type: Improvement Created: 2006-07-16T17:04:49.000+0000 Last Updated: 2008-12-19T13:35:09.000+0000 Status: Closed Fix version(s): Reporter: Markus Wolff (mwolff) Assignee: Simon R Jones (studio24) Tags: - Zend_Filter

Related issues: - ZF-42



While Zend_Filter_Input::testEmail() is already advertised in the manual, said method relies on Zend_Filter::isEmail(), which currently contains nothing more than a TODO marker. I don't know what kind of mega-super-duper email validation stuff was originally planned for this, but considering the method is needed by methods that are documented as if they were working, wouldn't it be nice to at least put a simple RegEx in place here, so that the method at least works in 95% of all cases?

If nothing else, it saves first-time users from having to backtrack the source of the problem throughout the ZF source.

Here's a regex that works for me: /^a-zA-Z?@([[:alnum:]-_]+.)+[a-zA-Z]{2,4}$/


Posted by Udo Gerhards (ugerhard) on 2006-07-17T04:32:20.000+0000

There has been an issue opened for this since the Trac days of the ZF, including a patch:

Posted by Darby Felton (darby) on 2006-07-24T11:22:57.000+0000

Duplicates ZF-42

Posted by Wil Sinclair (wil) on 2008-12-19T13:35:09.000+0000

Bookkeeping. Closing old issues and assigning them to the person who ultimately resolved the issue.

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.