xref: /PHP-8.1/ext/filter/tests/bug55478.phpt (revision 74859783)
1--TEST--
2Bug #55478 (FILTER_VALIDATE_EMAIL fails with internationalized domain name addresses containing >1 -)
3--EXTENSIONS--
4filter
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