summaryrefslogtreecommitdiff
path: root/ext/filter/tests/bug55478.phpt
diff options
context:
space:
mode:
Diffstat (limited to 'ext/filter/tests/bug55478.phpt')
-rw-r--r--ext/filter/tests/bug55478.phpt11
1 files changed, 11 insertions, 0 deletions
diff --git a/ext/filter/tests/bug55478.phpt b/ext/filter/tests/bug55478.phpt
new file mode 100644
index 0000000..243d707
--- /dev/null
+++ b/ext/filter/tests/bug55478.phpt
@@ -0,0 +1,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"