Ignore:
Timestamp:
Mar 31, 2010, 6:32:40 PM (14 years ago)
Author:
george
Message:
  • Upraveno: Aktualizace fóra.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/forum/includes/functions_install.php

    r400 r702  
    33*
    44* @package install
    5 * @version $Id: functions_install.php 8507 2008-04-20 04:57:29Z davidmj $
     5* @version $Id$
    66* @copyright (c) 2006 phpBB Group
    77* @license http://opensource.org/licenses/gpl-license.php GNU Public License
     
    2222function can_load_dll($dll)
    2323{
    24         return ((@ini_get('enable_dl') || strtolower(@ini_get('enable_dl')) == 'on') && (!@ini_get('safe_mode') || strtolower(@ini_get('safe_mode')) == 'off') && @dl($dll . '.' . PHP_SHLIB_SUFFIX)) ? true : false;
     24        // SQLite2 is a tricky thing, from 5.0.0 it requires PDO; if PDO is not loaded we must state that SQLite is unavailable
     25        // as the installer doesn't understand that the extension has a prerequisite.
     26        //
     27        // On top of this sometimes the SQLite extension is compiled for a different version of PDO
     28        // by some Linux distributions which causes phpBB to bomb out with a blank page.
     29        //
     30        // Net result we'll disable automatic inclusion of SQLite support
     31        //
     32        // See: r9618 and #56105
     33        if ($dll == 'sqlite')
     34        {
     35                return false;
     36        }
     37        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;
    2538}
    2639
     
    176189{
    177190        global $lang;
    178        
     191
    179192        $available_dbms = get_available_dbms(false, false, $only_20x_options);
    180193        $dbms_options = '';
     
    397410                                        else
    398411                                        {
    399                                                 $sql = "SELECT FIRST 0 char_length('')
    400                                                         FROM RDB\$DATABASE";
     412                                                $sql = 'SELECT 1 FROM RDB$DATABASE
     413                                                        WHERE BIN_AND(10, 1) = 0';
    401414                                                $result = $db->sql_query($sql);
    402                                                 if (!$result) // This can only fail if char_length is not defined
     415                                                if (!$result) // This can only fail if BIN_AND is not defined
    403416                                                {
    404417                                                        $error[] = $lang['INST_ERR_DB_NO_FIREBIRD'];
     
    441454                                }
    442455                        break;
    443                        
     456
    444457                        case 'oracle':
    445458                                if ($unicode_check)
     
    463476                                }
    464477                        break;
    465                        
     478
    466479                        case 'postgres':
    467480                                if ($unicode_check)
Note: See TracChangeset for help on using the changeset viewer.