aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB
diff options
context:
space:
mode:
authorOleg Pudeyev <oleg@bsdpower.com>2011-03-06 21:03:24 -0500
committerOleg Pudeyev <oleg@bsdpower.com>2011-03-06 23:10:09 -0500
commit4d92f9bb2eea82a9af36401649c318623d39307f (patch)
treea3f99433522d2681670669f43fc7e8b0d7414f2c /phpBB
parentaf43ed655bf31ae4b9ef999e0a95eeae67724597 (diff)
downloadforums-4d92f9bb2eea82a9af36401649c318623d39307f.tar
forums-4d92f9bb2eea82a9af36401649c318623d39307f.tar.gz
forums-4d92f9bb2eea82a9af36401649c318623d39307f.tar.bz2
forums-4d92f9bb2eea82a9af36401649c318623d39307f.tar.xz
forums-4d92f9bb2eea82a9af36401649c318623d39307f.zip
[ticket/10057] Check for interbase function existence.
Calling nonexistent functions with @ destroys the script with no feedback as to the cause of the error. Check whether interbase functions exist before calling them. PHPBB3-10057
Diffstat (limited to 'phpBB')
-rw-r--r--phpBB/includes/db/firebird.php8
1 files changed, 8 insertions, 0 deletions
diff --git a/phpBB/includes/db/firebird.php b/phpBB/includes/db/firebird.php
index 2f17b00b3f..d1d88ffe42 100644
--- a/phpBB/includes/db/firebird.php
+++ b/phpBB/includes/db/firebird.php
@@ -55,10 +55,18 @@ class dbal_firebird extends dbal
if ($this->persistency)
{
+ if (!function_exists('ibase_pconnect'))
+ {
+ return $this->sql_error('ibase_pconnect function does not exist, is interbase extension installed?');
+ }
$this->db_connect_id = @ibase_pconnect($use_database, $this->user, $sqlpassword, false, false, 3);
}
else
{
+ if (!function_exists('ibase_connect'))
+ {
+ return $this->sql_error('ibase_connect function does not exist, is interbase extension installed?');
+ }
$this->db_connect_id = @ibase_connect($use_database, $this->user, $sqlpassword, false, false, 3);
}