I was just setting up the validation for a form in which I decided to try using the filter_var function to check the validity of my email address. I can not find out what filter_var actually allows anywhere though (since the documentation is very simple), and I found out that it is allowing an email address like test@test. Doesn’t there have to be a .com, .net etc… in the domain?
Share
The behavior has changed somewhere around April. See bug #49576 and revision 297350.
That e-mail is indeed invalid, or at least that’s what the PHP developers understood. The source carries this notice:
The changelog mentions this bug fix for PHP 5.3.3 and PHP 5.2.14.