From bdf60ab2c118ae7b6374909ecf172cf6d5a112fd Mon Sep 17 00:00:00 2001 From: Chris Smith Date: Sun, 17 Jan 2010 17:41:21 +0000 Subject: [PATCH] The easy solution to all my problems with SQLite is this. :( #56105 git-svn-id: file:///svn/phpbb/branches/phpBB-3_0_0@10422 89ea8834-ac86-4346-8a33-228a782c2dd0 --- phpBB/docs/CHANGELOG.html | 1 + phpBB/includes/functions_install.php | 9 ++++++++- 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/phpBB/docs/CHANGELOG.html b/phpBB/docs/CHANGELOG.html index f90e1e84f3..ded991fa32 100644 --- a/phpBB/docs/CHANGELOG.html +++ b/phpBB/docs/CHANGELOG.html @@ -145,6 +145,7 @@
  • [Change] Forum feed no longer includes posts of subforums.
  • [Change] Show login attempt CAPTCHA option in the captcha plugin module.
  • [Change] It is no longer possible to persist a solution for the login CAPTCHA.
  • +
  • [Change] SQLite is no longer autoloaded by the installer. (Bug #56105)
  • 1.ii. Changes since 3.0.5

    diff --git a/phpBB/includes/functions_install.php b/phpBB/includes/functions_install.php index a5889224a1..1b9c66fc84 100644 --- a/phpBB/includes/functions_install.php +++ b/phpBB/includes/functions_install.php @@ -23,7 +23,14 @@ 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')) + // + // On top of this sometimes the SQLite extension is compiled for a different version of PDO + // by some Linux distributions which causes phpBB to bomb out with a blank page. + // + // Net result we'll disable automatic inclusion of SQLite support + // + // See: r9618 and #56105 + if ($dll == 'sqlite') { return false; }