#24176 [Opn]: Pear DB 1.4.0 stable DSN port bug

From: Date: Fri, 13 Jun 2003 17:07:14 +0000
Subject: #24176 [Opn]: Pear DB 1.4.0 stable DSN port bug
References: 1  Groups: php.pear.dev 
Request: Send a blank email to pear-dev+get-17420@lists.php.net to get a copy of this message
ID: 24176 User updated by: kevinwatt dot bbs at lls dot twbbs dot org Reported By: kevinwatt dot bbs at lls dot twbbs dot org Status: Open Bug Type: PEAR related Operating System: Debian PHP Version: 4.3.2 New Comment: [13 Jun 12:04pm CDT] kevinwatt dot bbs at lls dot twbbs dot org Description: ------------ ==================================================== zen stockbook # /usr/bin/php stock.inc mssql://user:passwd@tcp(203.73.xx.xxx:5005)/POSsrc /tds/login.c: tds_connect: 203.73.xx.xxxx:1433: Connection refused DB Error: connect failed ===================================================== Reproduce code: --------------- in function parseDSN($dsn) - line 551 if (strpos($proto_opts, ':') !== false) { ^^^^ here is the problem. Expected result: ---------------- http://tw2.php.net/manual/tw/function.strpos.php zen stockbook # /usr/bin/php stock.inc mssql://user:passwd@tcp(203.73.**.***:5005)/POSsrc /tds/login.c: tds_connect: 203.73.**.***:1433: Connection refused DB Error: connect failed Actual result: -------------- can't connect. + line 551 if (strpos($proto_opts, ':') !=== false) { couse http://www.php.net/manual/en/function.strpos.php Previous Comments: ------------------------------------------------------------------------ [2003-06-13 12:04:04] kevinwatt dot bbs at lls dot twbbs dot org Description: ------------ ==================================================== zen stockbook # /usr/bin/php stock.inc mssql://user:passwd@tcp(203.73.xx.xxx:5005)/POSsrc /tds/login.c: tds_connect: 203.73.xx.xxxx:1433: Connection refused DB Error: connect failed ===================================================== Reproduce code: --------------- in function parseDSN($dsn) - line 551 if (strpos($proto_opts, ':') !== false) { ^^^^ here is the problem. Expected result: ---------------- http://tw2.php.net/manual/tw/function.strpos.php zen stockbook # /usr/bin/php stock.inc mssql://user:passwd@tcp(203.73.53.166:5005)/POSsrc /tds/login.c: tds_connect: 203.73.53.166:1433: Connection refused DB Error: connect failed Actual result: -------------- can't connect. + line 551 if (strpos($proto_opts, ':') !=== false) { couse http://www.php.net/manual/en/function.strpos.php ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=24176&edit=1

« previous php.pear.dev (#17420) next »