PHP 8 compatibility
[m6w6/ext-psi] / tests / idn / idn004.phpt
index dc234b2f63912172dc5ddbb80e2cba917e995daf..139e9bd2860fc789bf44025af505468ef3f6ff8f 100644 (file)
@@ -1,21 +1,17 @@
 --TEST--
 libidn
 --INI--
-psi.directory={PWD}/../../psis:{PWD}
---SKIPIF--
-<?php
-extension_loaded("psi") or die("skip - need ext/psi");
-?>
+psi.directory={PWD}/../../psi.d:{PWD}
 --FILE--
 ===TEST===
-<?php 
+<?php
 
 $result = "buecher.de";
-$rc = idn\utf8_to_ascii("bücher.de", $result, IDNA_USE_STD3_ASCII_RULES);
+$rc = idn\utf8_to_ascii("bücher.de", $result, psi\IDNA_USE_STD3_ASCII_RULES);
 printf("%s\n", $result);
 printf("%s\n", idn\strerror($rc));
 
-$rc = idn\utf8_to_ascii("bücher2.de", $result, IDNA_USE_STD3_ASCII_RULES);
+$rc = idn\utf8_to_ascii("bücher2.de", $result, psi\IDNA_USE_STD3_ASCII_RULES);
 printf("%s\n", $result);
 printf("%s\n", idn\strerror($rc));
 
@@ -27,4 +23,4 @@ xn--bcher-kva.de
 Success
 xn--bcher2-3ya.de
 Success
-===DONE===
\ No newline at end of file
+===DONE===