fix symbol redirect detection
[m6w6/ext-psi] / tests / idn / idn002.phpt
index d6c00c7df590f3afca0cb11f6957c22db0c30e4f..d3d3375aaaaf421c88e0f22dd3f3978c4807225d 100644 (file)
@@ -5,10 +5,11 @@ psi.directory={PWD}/../../psi.d:{PWD}
 --SKIPIF--
 <?php
 extension_loaded("psi") or die("skip - need ext/psi");
 --SKIPIF--
 <?php
 extension_loaded("psi") or die("skip - need ext/psi");
+function_exists("idn\\strerror") or die("skip - need libidn");
 ?>
 --FILE--
 ===TEST===
 ?>
 --FILE--
 ===TEST===
-<?php 
+<?php
 
 $rc = idn\utf8_to_ascii("…asdf….de", $result, IDNA_USE_STD3_ASCII_RULES);
 printf("%s\n", $result);
 
 $rc = idn\utf8_to_ascii("…asdf….de", $result, IDNA_USE_STD3_ASCII_RULES);
 printf("%s\n", $result);
@@ -20,4 +21,4 @@ printf("%s\n", idn\strerror($rc));
 ===TEST===
 
 Non-digit/letter/hyphen in input
 ===TEST===
 
 Non-digit/letter/hyphen in input
-===DONE===
\ No newline at end of file
+===DONE===