mirror of
https://github.com/phpbb/phpbb.git
synced 2025-07-31 22:10:45 +02:00
only minor changes, some notes, played around with the code... nothing special.
git-svn-id: file:///svn/phpbb/trunk@3543 89ea8834-ac86-4346-8a33-228a782c2dd0
This commit is contained in:
@@ -581,15 +581,15 @@ else
|
||||
$check_extensions = array();
|
||||
$suffix = ( (defined('PHP_OS')) && (eregi('win', PHP_OS)) ) ? '.dll' : '.so';
|
||||
|
||||
for ($i = 0; $i < count($check_extensions); $i++)
|
||||
foreach ($check_extensions as $extension)
|
||||
{
|
||||
if (!@extension_loaded($check_extensions[$i]))
|
||||
if (!@extension_loaded($extension))
|
||||
{
|
||||
if ( (!@ini_get('safe_mode')) && (@ini_get('enable_dl')) )
|
||||
{
|
||||
if (@dl($check_extensions[$i] . $suffix))
|
||||
if (@dl($extension . $suffix))
|
||||
{
|
||||
$load_extensions .= ($load_extensions == '') ? $check_extensions[$i] . $suffix : ',' . $check_extensions[$i] . $suffix;
|
||||
$load_extensions .= ($load_extensions == '') ? $extension . $suffix : ',' . $extension . $suffix;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user