PEAR is discontinued

This is a static archive preserving historical releases and metadata. No new packages or updates will be published. For updates to existing packages, or to publish new packages, please use Composer and Packagist.

Home » Validate » Validate » Bug #10044

email validation bug

Details

Submitted2007-02-07 11:08 UTC
Fromronin_san at rednoize dot com
Assigneddavidc
StatusClosed
PackageValidate
PHP VersionIrrelevant
OSsuse/mandrake
Roadmaps0.8.0

Comments

[2007-02-07 11:08 UTC] ronin_san at rednoize dot com

Description:
------------
script returns true when validating an (wrong) email but that's not the expected result. after the last period there should be max 4 letters valid(.mobi, .info, .name).

Test script:
---------------
<?php
var_dump(Validate::email('iam.someone@example.commmmasd'));
?>

Expected result:
----------------
false

Actual result:
--------------
true

[2007-02-22 14:25 UTC] ash at hexmen dot com

TLDs are regularly added, so if anyone 'fixes' this, it should be considered temporary.

Note: there are two 6-letter TLDs: 'travel' and 'museum'

http://en.wikipedia.org/wiki/List_of_Internet_top-level_domains

[2007-02-26 21:44 UTC] ronin_san at rednoize dot com

@ash:

I wasn't aware of 6 letter long domains when i have posted this. Good point - my fault.

@david:

that would be perfect! :)