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

From: Date: Sun, 15 Jun 2003 04:26:17 +0000
Subject: #24176 [Asn->Csd]: Pear DB 1.4.0 stable DSN port bug
References: 1  Groups: php.pear.dev 
Request: Send a blank email to pear-dev+get-17476@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: Assigned +Status: Closed Bug Type: PEAR related Operating System: Debian PHP Version: 4.3.2 Assigned To: cox New Comment: This bug has been fixed in CVS. In case this was a PHP problem, snapshots of the sources are packaged every three hours; this change will be in the next snapshot. You can grab the snapshot at http://snaps.php.net/. In case this was a documentation problem, the fix will show up soon at http://www.php.net/manual/. In case this was a PHP.net website problem, the change will show up on the PHP.net site and on the mirror sites in short time. Thank you for the report, and for helping us make PHP better. Previous Comments: ------------------------------------------------------------------------ [2003-06-14 13:34:15] kevinwatt dot bbs at lls dot twbbs dot org Oops. Thank you very much. :D ------------------------------------------------------------------------ [2003-06-13 13:20:00] cox@php.net 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. ------------------------------------------------------------------------ [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 (#17476) next »