summaryrefslogtreecommitdiff
path: root/ext/filter/tests/bug55478.phpt
blob: bbfd50e9b778204ae6d726b5ed0033ee1f592a60 (plain)
1
2
3
4
5
6
7
8
9
10
11
--TEST--
Bug #55478 (FILTER_VALIDATE_EMAIL fails with internationalized domain name addresses containing >1 -)
--SKIPIF--
<?php if (!extension_loaded("filter")) die("skip"); ?>
--FILE--
<?php
$email_address = "test@xn--example--7za.de"; // "example-รค.de"
var_dump(filter_var($email_address, FILTER_VALIDATE_EMAIL));
?>
--EXPECT--
string(24) "test@xn--example--7za.de"