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 #956

Validate::email() doesn't allow Internationalized Domain Names (IDN)

Details

Request #956Validate::email() doesn't allow Internationalized Domain Names (IDN)
Submitted2004-03-06 09:40 UTC
Fromswalk at prp dot physik dot tu-darmstadt dot de
Assigneddavidc
StatusClosed
PackageValidate
PHP VersionIrrelevant
OSIrrelevant
Roadmaps(Not assigned)

Comments

[2004-03-06 09:40 UTC] swalk at prp dot physik dot tu-darmstadt dot de

Description:
------------
Validate::email() doesn't accept domain names that contain umlauts.

Reproduce code:
---------------
<?php
require 'Validate.php';
var_dump(Validate::email('postmaster@tüv.de'));

Expected result:
----------------
bool(true)

Actual result:
--------------
bool(false)

[2004-03-06 09:45 UTC] neufeind at php dot net

You're absolutely right. However, there is just no real IDNA-domaincheck / converter available in PEAR. I know we should fix this - but basically I think we should add support for IDNA-converting first.

Will try to have a look at this - nowever, it's not *that* urgent, since currently afaik almost no mailclient is able to handle IDNA-domains yet :-))

Using the "xn--"-form should work without a problem.

[2005-04-05 02:52 UTC] nphase at spoono dot com

[a-zA-Z0-9]?

aren't we forgetting '-' and '.' ?