php-src/ext/iconv/tests/skipif.inc

11 lines
264 B
PHP
Raw Normal View History

2002-02-03 10:18:30 +08:00
<?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");
}
if (!extension_loaded("iconv")) {
die("skip\n");
}
?>