Allow IDNA/punycode hosts
[m6w6/ext-http] / tests / gh-issue42.phpt
diff --git a/tests/gh-issue42.phpt b/tests/gh-issue42.phpt
new file mode 100644 (file)
index 0000000..a6f9ded
--- /dev/null
@@ -0,0 +1,16 @@
+--TEST--
+URL barfs on punycode
+--SKIPIF--
+<?php
+include "./skipif.inc";
+?>
+--FILE--
+<?php 
+echo "Test\n";
+echo new http\Url("http://www.xn--kln-sna.de"), "\n";
+?>
+===DONE===
+--EXPECT--
+Test
+http://www.xn--kln-sna.de/
+===DONE===