cvs: pear /Perm_LiveUser package.php package.xml /Perm_LiveUser/Auth/Container DB.php MDB.php MDB2.php /Perm_LiveUser/Perm/Container MDB2_Simple.php
MDB_Simple.php

From: Date: Fri, 12 Mar 2004 15:52:26 +0000
Subject: cvs: pear /Perm_LiveUser package.php package.xml /Perm_LiveUser/Auth/Container DB.php MDB.php MDB2.php /Perm_LiveUser/Perm/Container MDB2_Simple.php
MDB_Simple.php
Groups: php.pear.cvs 
Request: Send a blank email to pear-cvs+get-17346@lists.php.net to get a copy of this message
lsmith Fri Mar 12 10:52:26 2004 EDT Modified files: /pear/Perm_LiveUser package.php package.xml /pear/Perm_LiveUser/Auth/Container DB.php MDB.php MDB2.php /pear/Perm_LiveUser/Perm/Container MDB2_Simple.php MDB_Simple.php Log: - only disconnect when the disconnect option is set to true (default: null)

http://cvs.php.net/diff.php/pear/Perm_LiveUser/package.php?r1=1.26&r2=1.27&ty=u Index: pear/Perm_LiveUser/package.php diff -u pear/Perm_LiveUser/package.php:1.26 pear/Perm_LiveUser/package.php:1.27 --- pear/Perm_LiveUser/package.php:1.26 Fri Mar 12 10:31:31 2004 +++ pear/Perm_LiveUser/package.php Fri Mar 12 10:52:24 2004 @@ -10,7 +10,7 @@ $version = '0.10.1'; $notes = <<<EOT - - MDB containers: only disconnect when using the connect method (not when using the singleton method) + - only disconnect when the disconnect option is set to true (default: null) EOT; $description = <<<EOT http://cvs.php.net/diff.php/pear/Perm_LiveUser/package.xml?r1=1.84&r2=1.85&ty=u Index: pear/Perm_LiveUser/package.xml diff -u pear/Perm_LiveUser/package.xml:1.84 pear/Perm_LiveUser/package.xml:1.85 --- pear/Perm_LiveUser/package.xml:1.84 Fri Mar 12 10:31:31 2004 +++ pear/Perm_LiveUser/package.xml Fri Mar 12 10:52:24 2004 @@ -67,7 +67,7 @@ <date>2004-03-12</date> <license>LGPL</license> <state>beta</state> - <notes> - MDB containers: only disconnect when using the connect method (not when using the singleton method)</notes> + <notes> - only disconnect when the disconnect option is set to true (default: null)</notes> <deps> <dep type="pkg" rel="has" optional="yes">DB</dep> <dep type="pkg" rel="ge" version="1.1.4" optional="yes">MDB</dep> @@ -221,7 +221,7 @@ <date>2004-03-12</date> <license>LGPL</license> <state>beta</state> - <notes> - MDB containers: only disconnect when using the connect method (not when using the singleton method)</notes> + <notes> - only disconnect when the disconnect option is set to true (default: null)</notes> </release> <release> <version>0.10.0</version> http://cvs.php.net/diff.php/pear/Perm_LiveUser/Auth/Container/DB.php?r1=1.44&r2=1.45&ty=u Index: pear/Perm_LiveUser/Auth/Container/DB.php diff -u pear/Perm_LiveUser/Auth/Container/DB.php:1.44 pear/Perm_LiveUser/Auth/Container/DB.php:1.45 --- pear/Perm_LiveUser/Auth/Container/DB.php:1.44 Mon Dec 22 14:31:43 2003 +++ pear/Perm_LiveUser/Auth/Container/DB.php Fri Mar 12 10:52:25 2004 @@ -47,13 +47,27 @@ * 'allowDuplicateHandles' => 1); * * @author Markus Wolff <wolff@21st.de> - * @version $Id: DB.php,v 1.44 2003/12/22 19:31:43 arnaud Exp $ + * @version $Id: DB.php,v 1.45 2004/03/12 15:52:25 lsmith Exp $ * @package LiveUser * @category authentication */ class LiveUser_Auth_Container_DB extends LiveUser_Auth_Common { /** + * dsn to connect to + * @var object + * @access private + */ + var $dsn = null; + + /** + * disconnect + * @var object + * @access private + */ + var $disconnect = null; + + /** * PEAR::DB connection object * @var object * @access private @@ -118,8 +132,10 @@ */ function disconnect() { - $this->dbc->disconnect(); - $this->dbc = null; + if ($this->disconnect) { + $this->dbc->disconnect(); + $this->dbc = null; + } } /** http://cvs.php.net/diff.php/pear/Perm_LiveUser/Auth/Container/MDB.php?r1=1.25&r2=1.26&ty=u Index: pear/Perm_LiveUser/Auth/Container/MDB.php diff -u pear/Perm_LiveUser/Auth/Container/MDB.php:1.25 pear/Perm_LiveUser/Auth/Container/MDB.php:1.26 --- pear/Perm_LiveUser/Auth/Container/MDB.php:1.25 Fri Mar 12 10:29:38 2004 +++ pear/Perm_LiveUser/Auth/Container/MDB.php Fri Mar 12 10:52:25 2004 @@ -48,7 +48,7 @@ * 'allowDuplicateHandles' => 1); * * @author Markus Wolff <wolff@21st.de> - * @version $Id: MDB.php,v 1.25 2004/03/12 15:29:38 lsmith Exp $ + * @version $Id: MDB.php,v 1.26 2004/03/12 15:52:25 lsmith Exp $ * @package LiveUser * @category authentication */ @@ -62,6 +62,13 @@ var $dsn = null; /** + * disconnect + * @var object + * @access private + */ + var $disconnect = null; + + /** * dsn that was connected to * @var object * @access private @@ -126,7 +133,6 @@ $this->dbc =& MDB::singleton($connectOptions['dsn'], array('optimize' => 'portability')); break; default: - $this->dsn = $connectOptions['dsn']; $this->dbc =& MDB::connect($connectOptions['dsn'], array('optimize' => 'portability')); break; } @@ -145,7 +151,7 @@ */ function disconnect() { - if ($this->dsn) { + if ($this->disconnect) { $this->dbc->disconnect(); $this->dbc = null; } http://cvs.php.net/diff.php/pear/Perm_LiveUser/Auth/Container/MDB2.php?r1=1.3&r2=1.4&ty=u Index: pear/Perm_LiveUser/Auth/Container/MDB2.php diff -u pear/Perm_LiveUser/Auth/Container/MDB2.php:1.3 pear/Perm_LiveUser/Auth/Container/MDB2.php:1.4 --- pear/Perm_LiveUser/Auth/Container/MDB2.php:1.3 Fri Mar 12 10:29:38 2004 +++ pear/Perm_LiveUser/Auth/Container/MDB2.php Fri Mar 12 10:52:25 2004 @@ -48,7 +48,7 @@ * 'allowDuplicateHandles' => 1); * * @author Markus Wolff <wolff@21st.de> - * @version $Id: MDB2.php,v 1.3 2004/03/12 15:29:38 lsmith Exp $ + * @version $Id: MDB2.php,v 1.4 2004/03/12 15:52:25 lsmith Exp $ * @package LiveUser * @category authentication */ @@ -62,6 +62,13 @@ var $dsn = null; /** + * disconnect + * @var object + * @access private + */ + var $disconnect = null; + + /** * PEAR::MDB2 connection object * @var object * @access private @@ -119,7 +126,6 @@ $this->dbc =& MDB2::singleton($connectOptions['dsn'], array('portability' => MDB2_PORTABILITY_ALL)); break; default: - $this->dsn = $connectOptions['dsn']; $this->dbc =& MDB2::connect($connectOptions['dsn'], array('portability' => MDB2_PORTABILITY_ALL)); break; } @@ -138,7 +144,7 @@ */ function disconnect() { - if ($this->dsn) { + if ($this->disconnect) { $this->dbc->disconnect(); $this->dbc = null; } http://cvs.php.net/diff.php/pear/Perm_LiveUser/Perm/Container/MDB2_Simple.php?r1=1.6&r2=1.7&ty=u Index: pear/Perm_LiveUser/Perm/Container/MDB2_Simple.php diff -u pear/Perm_LiveUser/Perm/Container/MDB2_Simple.php:1.6 pear/Perm_LiveUser/Perm/Container/MDB2_Simple.php:1.7 --- pear/Perm_LiveUser/Perm/Container/MDB2_Simple.php:1.6 Fri Mar 12 10:29:37 2004 +++ pear/Perm_LiveUser/Perm/Container/MDB2_Simple.php Fri Mar 12 10:52:26 2004 @@ -40,7 +40,7 @@ * - userrights * * @author Björn Kraus <krausbn@php.net> - * @version $Id: MDB2_Simple.php,v 1.6 2004/03/12 15:29:37 lsmith Exp $ + * @version $Id: MDB2_Simple.php,v 1.7 2004/03/12 15:52:26 lsmith Exp $ * @package LiveUser * @category authentication */ @@ -54,6 +54,13 @@ var $dsn = null; /** + * disconnect + * @var object + * @access private + */ + var $disconnect = null; + + /** * PEAR::MDB2 connection object. * * @var object @@ -111,7 +118,6 @@ $this->dbc =& MDB2::singleton($connectOptions['dsn'], array('portability' => MDB2_PORTABILITY_ALL)); break; default: - $this->dsn = $connectOptions['dsn']; $this->dbc =& MDB2::connect($connectOptions['dsn'], array('portability' => MDB2_PORTABILITY_ALL)); break; } @@ -165,7 +171,7 @@ */ function disconnect() { - if ($this->dsn) { + if ($this->disconnect) { $this->dbc->disconnect(); $this->dbc = null; } http://cvs.php.net/diff.php/pear/Perm_LiveUser/Perm/Container/MDB_Simple.php?r1=1.16&r2=1.17&ty=u Index: pear/Perm_LiveUser/Perm/Container/MDB_Simple.php diff -u pear/Perm_LiveUser/Perm/Container/MDB_Simple.php:1.16 pear/Perm_LiveUser/Perm/Container/MDB_Simple.php:1.17 --- pear/Perm_LiveUser/Perm/Container/MDB_Simple.php:1.16 Fri Mar 12 10:29:37 2004 +++ pear/Perm_LiveUser/Perm/Container/MDB_Simple.php Fri Mar 12 10:52:26 2004 @@ -40,7 +40,7 @@ * - userrights * * @author Björn Kraus <krausbn@php.net> - * @version $Id: MDB_Simple.php,v 1.16 2004/03/12 15:29:37 lsmith Exp $ + * @version $Id: MDB_Simple.php,v 1.17 2004/03/12 15:52:26 lsmith Exp $ * @package LiveUser * @category authentication */ @@ -54,6 +54,13 @@ var $dsn = null; /** + * disconnect + * @var object + * @access private + */ + var $disconnect = null; + + /** * PEAR::MDB connection object. * * @var object @@ -111,7 +118,6 @@ $this->dbc =& MDB::singleton($connectOptions['dsn'], array('optimize' => 'portability')); break; default: - $this->dsn = $connectOptions['dsn']; $this->dbc =& MDB::connect($connectOptions['dsn'], array('optimize' => 'portability')); break; } @@ -165,7 +171,7 @@ */ function disconnect() { - if ($this->dsn) { + if ($this->disconnect) { $this->dbc->disconnect(); $this->dbc = null; }
« previous php.pear.cvs (#17346) next »