projects
/
m6w6
/
ext-psi
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
|
github
raw
|
inline
| side by side
don't register constants with its anon prefix
[m6w6/ext-psi]
/
tests
/
idn
/
idn002.phpt
diff --git
a/tests/idn/idn002.phpt
b/tests/idn/idn002.phpt
index 9f092b1e77eb4966b19d082095c35791715190bc..d3d3375aaaaf421c88e0f22dd3f3978c4807225d 100644
(file)
--- a/
tests/idn/idn002.phpt
+++ b/
tests/idn/idn002.phpt
@@
-1,14
+1,15
@@
--TEST--
libidn
--INI--
--TEST--
libidn
--INI--
-psi.directory={PWD}
+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===