Changeset 702 for trunk/forum/includes/functions_install.php
- Timestamp:
- Mar 31, 2010, 6:32:40 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/forum/includes/functions_install.php
r400 r702 3 3 * 4 4 * @package install 5 * @version $Id : functions_install.php 8507 2008-04-20 04:57:29Z davidmj$5 * @version $Id$ 6 6 * @copyright (c) 2006 phpBB Group 7 7 * @license http://opensource.org/licenses/gpl-license.php GNU Public License … … 22 22 function can_load_dll($dll) 23 23 { 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; 25 38 } 26 39 … … 176 189 { 177 190 global $lang; 178 191 179 192 $available_dbms = get_available_dbms(false, false, $only_20x_options); 180 193 $dbms_options = ''; … … 397 410 else 398 411 { 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'; 401 414 $result = $db->sql_query($sql); 402 if (!$result) // This can only fail if char_lengthis not defined415 if (!$result) // This can only fail if BIN_AND is not defined 403 416 { 404 417 $error[] = $lang['INST_ERR_DB_NO_FIREBIRD']; … … 441 454 } 442 455 break; 443 456 444 457 case 'oracle': 445 458 if ($unicode_check) … … 463 476 } 464 477 break; 465 478 466 479 case 'postgres': 467 480 if ($unicode_check)
Note:
See TracChangeset
for help on using the changeset viewer.