Skip to content

Commit ff7cffd

Browse files
committed
[BUGFIX] No diffence with windows
1 parent 5f77b37 commit ff7cffd

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

lib/vendor/creole/drivers/mssqlsrv/MSSQLSRVConnection.php

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -53,13 +53,8 @@ function connect($dsninfo, $flags = 0)
5353

5454
$serverName = $dsninfo['hostspec'] ? $dsninfo['hostspec'] : '(local)';
5555

56-
if (PHP_OS == "WINNT" || PHP_OS == "WIN32") {
57-
$portDelimiter = ",";
58-
} else {
59-
$portDelimiter = ":";
60-
}
61-
6256
if(!empty($dsninfo['port'])) {
57+
$portDelimiter = ",";
6358
$serverName .= $portDelimiter.$dsninfo['port'];
6459
}
6560

0 commit comments

Comments
 (0)