xref: /PHP-7.0/ext/filter/tests/bug55478.phpt (revision 8222ae73)
1--TEST--
2Bug #55478 (FILTER_VALIDATE_EMAIL fails with internationalized domain name addresses containing >1 -)
3--SKIPIF--
4<?php if (!extension_loaded("filter")) die("skip"); ?>
5--FILE--
6<?php
7$email_address = "test@xn--example--7za.de"; // "example-ä.de"
8var_dump(filter_var($email_address, FILTER_VALIDATE_EMAIL));
9?>
10--EXPECT--
11string(24) "test@xn--example--7za.de"
12