-do not dl() load

-magic_quotes_runtime
This commit is contained in:
Marcus Boerger 2002-10-29 21:51:32 +00:00
parent 6c132995bb
commit 6663f2cd0a
3 changed files with 11 additions and 10 deletions

View File

@ -1,10 +1,11 @@
<?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");
}
// Do not dl load extension
//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 iconv extension not available\n");
}

View File

@ -1,8 +1,7 @@
<?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");
}
// Do not dl load extension
//if (!extension_loaded("iconv") && ini_get("enable_dl")) {
// $dlext = (substr(PHP_OS, 0, 3) == "WIN") ? ".dll" : ".so";
// @dl("iconv$dlext");
//}
?>

View File

@ -6,6 +6,7 @@ Translit UTF-8 quotes
( ICONV_IMPL != "libiconv" ) and die("skip ICONV_IMPL != \"libiconv\"");
?>
--INI--
magic_quotes_runtime=0
error_reporting=2047
--FILE--
<?php // vim600: syn=php