Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Merge branch 'patch-1' of git://github.com/radnan/zf2 into radnan-pat…

…ch-1
  • Loading branch information...
commit 46d786f2be1c8d975e03f4d99c73ce8add7b5fc1 2 parents 0029ccd + 2f387d4
@ralphschindler ralphschindler authored
Showing with 6 additions and 0 deletions.
  1. +6 −0 library/Zend/Db/Adapter/Driver/Pdo/Connection.php
View
6 library/Zend/Db/Adapter/Driver/Pdo/Connection.php
@@ -213,6 +213,9 @@ public function connect()
case 'hostname':
$hostname = (string) $value;
break;
+ case 'port':
+ $port = (int) $value;
+ break;
case 'database':
case 'dbname':
$database = (string) $value;
@@ -241,6 +244,9 @@ public function connect()
if (isset($hostname)) {
$dsn[] = "host={$hostname}";
}
+ if (isset($port)) {
+ $dsn[] = "port={$port}";
+ }
break;
}
$dsn = $pdoDriver . ':' . implode(';', $dsn);
Please sign in to comment.
Something went wrong with that request. Please try again.