flush
[m6w6/ext-psi] / tests / idn / idn002.phpt
1 --TEST--
2 libidn
3 --INI--
4 psi.directory={PWD}
5 --SKIPIF--
6 <?php
7 extension_loaded("psi") or die("skip - need ext/psi");
8 ?>
9 --FILE--
10 ===TEST===
11 <?php
12
13 $rc = idn\utf8_to_ascii("…asdf….de", $result, IDNA_USE_STD3_ASCII_RULES);
14 printf("%s\n", $result);
15 printf("%s\n", idn\strerror($rc));
16
17 ?>
18 ===DONE===
19 --EXPECT--
20 ===TEST===
21
22 Non-digit/letter/hyphen in input
23 ===DONE===