PEAR is discontinued

This is a static archive preserving historical releases and metadata. No new packages or updates will be published. For updates to existing packages, or to publish new packages, please use Composer and Packagist.

Home » Database » DB » Bug #2731

mssql connect doesn't work after version 1.6.5 on Linux

Details

Request #2731mssql connect doesn't work after version 1.6.5 on Linux
Submitted2004-11-10 14:30 UTC
Frommfranzil at adriaweb dot it
Assigneddanielc
StatusClosed
PackageDB
PHP VersionIrrelevant
OSLinux
Roadmaps(Not assigned)

Comments

[2004-11-10 14:30 UTC] mfranzil at adriaweb dot it

Description:
------------
After 1.6.5 the code was changed only for Windows Operating System! (Bug #2140)
On Linux doesn't work!

I suggest a switch on SO

Reproduce code:
---------------
# line 86 of file DB/mssql.php

if(ereg('^.:', $_SERVER['DOCUMENT_ROOT'])){
## WIN
$l_stSepPath = ',';
}else{
## .NIX
$l_stSepPath = ':';
}## fine else/if

$dbhost .= $dsninfo['port'] ? $l_stSepPath .$dsninfo['port'] : '';

# instead of

$dbhost .= $dsninfo['port'] ? ',' . $dsninfo['port'] : '';

Expected result:
----------------
Connection succeeded.

Actual result:
--------------
DB Error: connect failed