diff options
author | Andreas Fischer <bantu@phpbb.com> | 2011-10-16 20:06:08 +0200 |
---|---|---|
committer | Andreas Fischer <bantu@phpbb.com> | 2011-10-16 20:10:37 +0200 |
commit | fa1d9a4571ac208bbc9379b9e4e3a9a5ae07f0f1 (patch) | |
tree | be8cf79ec44c3ff066632eead72baf859fb9d54d /tests | |
parent | 7813135365c5765f8bfc70afc26047fa4e4914a9 (diff) | |
download | forums-fa1d9a4571ac208bbc9379b9e4e3a9a5ae07f0f1.tar forums-fa1d9a4571ac208bbc9379b9e4e3a9a5ae07f0f1.tar.gz forums-fa1d9a4571ac208bbc9379b9e4e3a9a5ae07f0f1.tar.bz2 forums-fa1d9a4571ac208bbc9379b9e4e3a9a5ae07f0f1.tar.xz forums-fa1d9a4571ac208bbc9379b9e4e3a9a5ae07f0f1.zip |
[ticket/10416] Pass dbport to PDO object in ...connection_manager::connect().
PHPBB3-10416
Diffstat (limited to 'tests')
-rw-r--r-- | tests/test_framework/phpbb_database_test_connection_manager.php | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/tests/test_framework/phpbb_database_test_connection_manager.php b/tests/test_framework/phpbb_database_test_connection_manager.php index a7559e2183..68e09add94 100644 --- a/tests/test_framework/phpbb_database_test_connection_manager.php +++ b/tests/test_framework/phpbb_database_test_connection_manager.php @@ -69,6 +69,11 @@ class phpbb_database_test_connection_manager default: $dsn .= 'host=' . $this->config['dbhost']; + if ($this->config['dbport']) + { + $dsn .= ';port=' . $this->config['dbport']; + } + if ($use_db) { $dsn .= ';dbname=' . $this->config['dbname']; |