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

From: Date: Fri, 13 Jun 2003 18:20:01 +0000
Subject: #24176 [Opn->Asn]: Pear DB 1.4.0 stable DSN port bug
References: 1  Groups: php.pear.dev 
Request: Send a blank email to pear-dev+get-17424@lists.php.net to get a copy of this message
ID: 24176 Updated by: cox@php.net Reported By: kevinwatt dot bbs at lls dot twbbs dot org -Status: Open +Status: Assigned Bug Type: PEAR related Operating System: Debian PHP Version: 4.3.2 -Assigned To: +Assigned To: cox New Comment: There is nothing wrong with the use of strpos(). Instead there is a problem with the mssql driver which doesn't care on the passed port. I'll fix it in the next days. Thanks for the report. Previous Comments: ------------------------------------------------------------------------ [2003-06-13 12:07:13] kevinwatt dot bbs at lls dot twbbs dot org [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 ------------------------------------------------------------------------ [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 (#17424) next »