remove @ before dl()

This commit is contained in:
Marc Delisle
2002-07-15 15:31:18 +00:00
parent 77ab87ee69
commit 42c958fe0b
2 changed files with 14 additions and 2 deletions

View File

@@ -9,6 +9,13 @@ $Source$
* db_details_export.php3, db_details_links.php3, Documentation.html,
sql.php3, tbl_properties_export.php3, libraries/common.lib.php3,
libraries/select_lang.lib.php3: fixes from Loic
* config.inc.php3: default value for $cfg['AllowAnywhereRecoding'] = FALSE;
to avoid problems on multithreaded servers, thanks to Neil Darlow
(ndarlow)
* libraries/charset_conversion.lib.php3: remove the "@" before dl()
because multithreaded servers don't support dl(), and we want
to see the error message, thanks to /Leblanc
2002-07-14 Marc Delisle <lem9@users.sourceforge.net>
* Documentation.html, db_details_exports.php3, tbl_properties_export.php3:

View File

@@ -12,6 +12,11 @@ if (!defined('PMA_CHARSET_CONVERSION_LIB_INCLUDED')){
/**
* Loads the recode or iconv extensions if any of it is not loaded yet
*
* (do not put a "@" before the dl() because we want to see the error
* message: multithreaded web servers don't support dl() but we cannot
* detect if the server is multithreaded, and under PHP 4.2.1 at least,
* it reports that the function dl exists...)
*/
if (isset($cfg['AllowAnywhereRecoding'])
&& $cfg['AllowAnywhereRecoding']
@@ -25,9 +30,9 @@ if (!defined('PMA_CHARSET_CONVERSION_LIB_INCLUDED')){
} else {
$suffix = '.so';
}
@dl('recode' . $suffix);
dl('recode' . $suffix);
if (!@extension_loaded('recode')) {
@dl('iconv' . $suffix);
dl('iconv' . $suffix);
if (!@extension_loaded('iconv')) {
echo $strCantLoadRecodeIconv;
exit();