cvs: pear /MDB2 MDB2.php
| From: | Lukas Smith | Date: | Sat, 25 Mar 2006 10:37:07 +0000 |
| Subject: | cvs: pear /MDB2 MDB2.php | ||
| Groups: | php.pear.cvs | ||
| Request: | Send a blank email to pear-cvs+get-39305@lists.php.net to get a copy of this message | ||
lsmith Sat Mar 25 10:37:07 2006 UTC
Modified files:
/pear/MDB2 MDB2.php
Log:
- added connected_server_info to cache server info in getServerInfo()
- reset all connection related properties in disconnect()
http://cvs.php.net/viewcvs.cgi/pear/MDB2/MDB2.php?r1=1.178&r2=1.179&diff_format=u
Index: pear/MDB2/MDB2.php
diff -u pear/MDB2/MDB2.php:1.178 pear/MDB2/MDB2.php:1.179
--- pear/MDB2/MDB2.php:1.178 Tue Mar 21 09:21:50 2006
+++ pear/MDB2/MDB2.php Sat Mar 25 10:37:07 2006
@@ -43,7 +43,7 @@
// | Author: Lukas Smith <smith@pooteeweet.org> |
// +----------------------------------------------------------------------+
//
-// $Id: MDB2.php,v 1.178 2006/03/21 09:21:50 lsmith Exp $
+// $Id: MDB2.php,v 1.179 2006/03/25 10:37:07 lsmith Exp $
//
/**
@@ -952,6 +952,13 @@
var $connected_database_name = '';
/**
+ * server version information
+ * @var string
+ * @access protected
+ */
+ var $connected_server_info = '';
+
+ /**
* list of all supported features of the given driver
* @var array
* @access public
@@ -1749,6 +1756,12 @@
*/
function disconnect()
{
+ $this->connection = 0;
+ $this->connected_dsn = array();
+ $this->connected_database_name = '';
+ $this->opened_persistent = null;
+ $this->connected_server_info = '';
+ $this->in_transaction = false;
return MDB2_OK;
}