fix stdlib inclusion on linux
[m6w6/ext-psi] / tests / idn / idn003.phpt
1 --TEST--
2 libidn
3 --INI--
4 psi.directory={PWD}/../../psi.d:{PWD}
5 --SKIPIF--
6 <?php
7 extension_loaded("psi") or die("skip - need ext/psi");
8 function_exists("idn\\strerror") or die("skip - need libidn");
9 ?>
10 --FILE--
11 ===TEST===
12 <?php
13
14 $result = "buecher.de";
15 $rc = idn\utf8_to_ascii("b├╝cher.de", $result, psi\IDNA_USE_STD3_ASCII_RULES);
16 printf("%s\n", $result);
17 printf("%s\n", idn\strerror($rc));
18
19 ?>
20 ===DONE===
21 --EXPECT--
22 ===TEST===
23 xn--bcher-kva.de
24 Success
25 ===DONE===