summaryrefslogtreecommitdiff
path: root/ext/filter/tests/bug55478.phpt
blob: 243d7078e7aba07b3d04af00e55101f35023348d (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"