aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/includes/functions_install.php
diff options
context:
space:
mode:
authorChris Smith <toonarmy@phpbb.com>2009-06-18 12:56:59 +0000
committerChris Smith <toonarmy@phpbb.com>2009-06-18 12:56:59 +0000
commite3af3015231c9c8baf58f55081b2068d2dad89b0 (patch)
tree358ddb2109413f46c4a242996612920798c317ad /phpBB/includes/functions_install.php
parenta4e817e32286125ccc3d85a11b0c8e990ab8697a (diff)
downloadforums-e3af3015231c9c8baf58f55081b2068d2dad89b0.tar
forums-e3af3015231c9c8baf58f55081b2068d2dad89b0.tar.gz
forums-e3af3015231c9c8baf58f55081b2068d2dad89b0.tar.bz2
forums-e3af3015231c9c8baf58f55081b2068d2dad89b0.tar.xz
forums-e3af3015231c9c8baf58f55081b2068d2dad89b0.zip
Finally stop this annoyance, if PDO is shared module it must be loaded for the SQLite extension to work
git-svn-id: file:///svn/phpbb/branches/phpBB-3_0_0@9618 89ea8834-ac86-4346-8a33-228a782c2dd0
Diffstat (limited to 'phpBB/includes/functions_install.php')
-rw-r--r--phpBB/includes/functions_install.php6
1 files changed, 6 insertions, 0 deletions
diff --git a/phpBB/includes/functions_install.php b/phpBB/includes/functions_install.php
index 611b0a7bc3..42b9b4e318 100644
--- a/phpBB/includes/functions_install.php
+++ b/phpBB/includes/functions_install.php
@@ -21,6 +21,12 @@ if (!defined('IN_PHPBB'))
*/
function can_load_dll($dll)
{
+ // SQLite2 is a tricky thing, from 5.0.0 it requires PDO; if PDO is not loaded we must state that SQLite is unavailable
+ // as the installer doesn't understand that the extension has a prerequisite.
+ if ($dll == 'sqlite' && version_compare(PHP_VERSION, '5.0.0', '>=') && !extension_loaded('pdo'))
+ {
+ return false;
+ }
return ((@ini_get('enable_dl') || strtolower(@ini_get('enable_dl')) == 'on') && (!@ini_get('safe_mode') || strtolower(@ini_get('safe_mode')) == 'off') && function_exists('dl') && @dl($dll . '.' . PHP_SHLIB_SUFFIX)) ? true : false;
}