cvs: pear /MDB2 MDB2.php package.php
| From: | Lorenzo Alberton | Date: | Sun, 29 Mar 2009 16:53:55 +0000 |
| Subject: | cvs: pear /MDB2 MDB2.php package.php | ||
| Groups: | php.pear.cvs | ||
| Request: | Send a blank email to pear-cvs+get-55870@lists.php.net to get a copy of this message | ||
quipo Sun Mar 29 16:53:55 2009 UTC
Modified files:
/pear/MDB2 MDB2.php package.php
Log:
- fixed bug #16020: unable to set params via dsn string in parseDSN()
- fixed unreported bug in parseDSN() and oracle's Easy Connect syntax
http://cvs.php.net/viewvc.cgi/pear/MDB2/MDB2.php?r1=1.336&r2=1.337&diff_format=u
Index: pear/MDB2/MDB2.php
diff -u pear/MDB2/MDB2.php:1.336 pear/MDB2/MDB2.php:1.337
--- pear/MDB2/MDB2.php:1.336 Fri Mar 13 17:08:33 2009
+++ pear/MDB2/MDB2.php Sun Mar 29 16:53:55 2009
@@ -43,7 +43,7 @@
// | Author: Lukas Smith <smith@pooteeweet.org> |
// +----------------------------------------------------------------------+
//
-// $Id: MDB2.php,v 1.336 2009/03/13 17:08:33 quipo Exp $
+// $Id: MDB2.php,v 1.337 2009/03/29 16:53:55 quipo Exp $
//
/**
@@ -898,7 +898,9 @@
//"username/password@[//]host[:port][/service_name]"
//e.g. "scott/tiger@//mymachine:1521/oracle"
$proto_opts = $dsn;
- $dsn = substr($proto_opts, strrpos($proto_opts, '/') + 1);
+ $pos = strrpos($proto_opts, '/');
+ $dsn = substr($proto_opts, $pos + 1);
+ $proto_opts = substr($proto_opts, 0, $pos);
} elseif (strpos($dsn, '/') !== false) {
list($proto_opts, $dsn) = explode('/', $dsn, 2);
} else {
@@ -936,7 +938,7 @@
}
foreach ($opts as $opt) {
list($key, $value) = explode('=', $opt);
- if (!isset($parsed[$key])) {
+ if (false === $parsed[$key]) {
// don't allow params overwrite
$parsed[$key] = rawurldecode($value);
}
http://cvs.php.net/viewvc.cgi/pear/MDB2/package.php?r1=1.299&r2=1.300&diff_format=u
Index: pear/MDB2/package.php
diff -u pear/MDB2/package.php:1.299 pear/MDB2/package.php:1.300
--- pear/MDB2/package.php:1.299 Fri Mar 13 17:08:34 2009
+++ pear/MDB2/package.php Sun Mar 29 16:53:55 2009
@@ -8,6 +8,8 @@
$state = 'beta';
$notes = <<<EOT
- fixed bug #15912: MDB2::loadClass can return MDB2_OK without loading class
+- fixed bug #16020: unable to set params via dsn string in parseDSN()
+- fixed unreported bug in parseDSN() and oracle's Easy Connect syntax
open todo items:
- handle autoincrement fields in alterTable()