> -----Original Message----- > From: Ferenc Kovacs [mailto:tyr...@gmail.com] > Sent: 02 April 2010 23:09 > To: Rasmus Lerdorf > Cc: Sean Coates; internals@lists.php.net > Subject: Re: [PHP-DEV] Re: [PHP-CVS] svn: /php/php-src/ > branches/PHP_5_2/NEWS > branches/PHP_5_2/ext/filter/logical_filters.c > branches/PHP_5_3/NEWS > branches/PHP_5_3/ext/filter/logical_filters.c > trunk/ext/filter/logical_filters.c > > Why not define multiple filters? > I did that solution with more than one framework. > There are cases when you need to validate the email of your > remote users (eg. you want to restrict j...@localhost), and > there are some cases, when you want to go all the way: > validate the email by format, check the domain for existance, > check the MX, and there are cases when you have to handle > local addresses as well, but provide some minimal validation > for typos. >
Would make sense. Especially considering HTML5's current validation rules of emails is something different again. http://www.whatwg.org/specs/web-apps/current-work/multipage/states-of- the-type-attribute.html#e-mail-state Having a mismatch in validation between client & server just a recipe for user frustration. Jared -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php