-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 <?php
// This script prints "skip" if condition does not meet. // This script prints "skip" if condition does not meet.
if (!extension_loaded("iconv") && ini_get("enable_dl")) { // Do not dl load extension
$dlext = (substr(PHP_OS, 0, 3) == "WIN") ? ".dll" : ".so"; //if (!extension_loaded("iconv") && ini_get("enable_dl")) {
@dl("iconv$dlext"); // $dlext = (substr(PHP_OS, 0, 3) == "WIN") ? ".dll" : ".so";
} // @dl("iconv$dlext");
//}
if (!extension_loaded("iconv")) { if (!extension_loaded("iconv")) {
die("skip iconv extension not available\n"); die("skip iconv extension not available\n");
} }

View File

@ -1,8 +1,7 @@
<?php <?php
// This script prints "skip" if condition does not meet. // Do not dl load extension
//if (!extension_loaded("iconv") && ini_get("enable_dl")) {
if (!extension_loaded("iconv") && ini_get("enable_dl")) { // $dlext = (substr(PHP_OS, 0, 3) == "WIN") ? ".dll" : ".so";
$dlext = (substr(PHP_OS, 0, 3) == "WIN") ? ".dll" : ".so"; // @dl("iconv$dlext");
@dl("iconv$dlext"); //}
}
?> ?>

View File

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