diff options
author | Meik Sievertsen <acydburn@phpbb.com> | 2008-09-17 15:11:57 +0000 |
---|---|---|
committer | Meik Sievertsen <acydburn@phpbb.com> | 2008-09-17 15:11:57 +0000 |
commit | eb2050a720e3c85f8ae81bde2ac3086e1610c2f9 (patch) | |
tree | faa12981a0f416464bff6c35d729fc131056673c /phpBB/includes/db/mssql.php | |
parent | ba882709d808e4267cc01a4a7023e1950c8c5783 (diff) | |
download | forums-eb2050a720e3c85f8ae81bde2ac3086e1610c2f9.tar forums-eb2050a720e3c85f8ae81bde2ac3086e1610c2f9.tar.gz forums-eb2050a720e3c85f8ae81bde2ac3086e1610c2f9.tar.bz2 forums-eb2050a720e3c85f8ae81bde2ac3086e1610c2f9.tar.xz forums-eb2050a720e3c85f8ae81bde2ac3086e1610c2f9.zip |
Use correct port delimiter for MSSQL connections in windows. (Bug #16615)
git-svn-id: file:///svn/phpbb/branches/phpBB-3_0_0@8866 89ea8834-ac86-4346-8a33-228a782c2dd0
Diffstat (limited to 'phpBB/includes/db/mssql.php')
-rw-r--r-- | phpBB/includes/db/mssql.php | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/phpBB/includes/db/mssql.php b/phpBB/includes/db/mssql.php index 97be2bfb3f..4131be2c32 100644 --- a/phpBB/includes/db/mssql.php +++ b/phpBB/includes/db/mssql.php @@ -32,9 +32,11 @@ class dbal_mssql extends dbal { $this->persistency = $persistency; $this->user = $sqluser; - $this->server = $sqlserver . (($port) ? ':' . $port : ''); $this->dbname = $database; + $port_delimiter = (defined('PHP_OS') && substr(PHP_OS, 0, 3) === 'WIN') ? ',' : ':'; + $this->server = $sqlserver . (($port) ? $port_delimiter . $port : ''); + @ini_set('mssql.charset', 'UTF-8'); @ini_set('mssql.textlimit', 2147483647); @ini_set('mssql.textsize', 2147483647); |