summaryrefslogtreecommitdiff
path: root/ext/iconv/tests/test.inc
diff options
context:
space:
mode:
authorMarcus Boerger <helly@php.net>2002-10-28 17:15:21 +0000
committerMarcus Boerger <helly@php.net>2002-10-28 17:15:21 +0000
commit6829a7a5b1ce6e372204bdc9abdbca80f463bf94 (patch)
treeb68aa5e8d779093d4272b678ec1d6c6d354d8cd2 /ext/iconv/tests/test.inc
parenta78d5eb8873fc384d933aad4e79a05ccde0f89a2 (diff)
downloadphp-git-6829a7a5b1ce6e372204bdc9abdbca80f463bf94.tar.gz
fix this tests
-they did not dl load module in test.... -disable E_NOTICE
Diffstat (limited to 'ext/iconv/tests/test.inc')
-rw-r--r--ext/iconv/tests/test.inc8
1 files changed, 8 insertions, 0 deletions
diff --git a/ext/iconv/tests/test.inc b/ext/iconv/tests/test.inc
new file mode 100644
index 0000000000..360c309632
--- /dev/null
+++ b/ext/iconv/tests/test.inc
@@ -0,0 +1,8 @@
+<?php
+// This script prints "skip" if condition does not meet.
+
+if (!extension_loaded("iconv") && ini_get("enable_dl")) {
+ $dlext = (substr(PHP_OS, 0, 3) == "WIN") ? ".dll" : ".so";
+ @dl("iconv$dlext");
+}
+?> \ No newline at end of file