CVS update: /cowiki/includes/cowiki/class/dao/

[email protected] 6 May 2005 02:09:16 -0000
Newsgroups gmane.comp.php.cowiki.cvs
Message-ID <[email protected]>
User: dgorski 
Date: 2005/05/05 19:09:16

Modified:
   cowiki/includes/cowiki/class/dao/class.StorageMySQL.php
   cowiki/includes/cowiki/class/dao/class.StorageMySQLi.php

Log:
 Nullify internal database link/handle after close()

File Changes:

Directory: /cowiki/includes/cowiki/class/dao/
=============================================

File [changed]: class.StorageMySQL.php
Url: http://cowiki.tigris.org/source/browse/cowiki/includes/cowiki/class/dao/class.StorageMySQL.php?r1=1.32&r2=1.33
Delta lines:  +4 -2
-------------------
--- class.StorageMySQL.php	6 May 2005 02:03:56 -0000	1.32
+++ class.StorageMySQL.php	6 May 2005 02:09:14 -0000	1.33
@@ -2,7 +2,7 @@
 
 /**
  *
- * $Id: class.StorageMySQL.php,v 1.32 2005/05/06 02:03:56 dgorski Exp $
+ * $Id: class.StorageMySQL.php,v 1.33 2005/05/06 02:09:14 dgorski Exp $
  *
  * This file is part of coWiki. coWiki is free software under the terms of
  * the GNU General Public License (GPL). Read the LICENSE file. If you did
@@ -17,7 +17,7 @@
  * @author      Daniel T. Gorski, <[email protected]>
  * @copyright   (C) Daniel T. Gorski, {@link http://www.develnet.org}
  * @license     http://www.gnu.org/licenses/gpl.html
- * @version     $Revision: 1.32 $
+ * @version     $Revision: 1.33 $
  *
  */
 
@@ -612,6 +612,8 @@
     public function close() {
         if ($this->rLink) {
             @mysql_close($this->rLink);
+
+            $this->rLink = null;
         }
     }
 

File [changed]: class.StorageMySQLi.php
Url: http://cowiki.tigris.org/source/browse/cowiki/includes/cowiki/class/dao/class.StorageMySQLi.php?r1=1.14&r2=1.15
Delta lines:  +4 -2
-------------------
--- class.StorageMySQLi.php	6 May 2005 02:04:30 -0000	1.14
+++ class.StorageMySQLi.php	6 May 2005 02:09:14 -0000	1.15
@@ -2,7 +2,7 @@
 
 /**
  *
- * $Id: class.StorageMySQLi.php,v 1.14 2005/05/06 02:04:30 dgorski Exp $
+ * $Id: class.StorageMySQLi.php,v 1.15 2005/05/06 02:09:14 dgorski Exp $
  *
  * This file is part of coWiki. coWiki is free software under the terms of
  * the GNU General Public License (GPL). Read the LICENSE file. If you did
@@ -17,7 +17,7 @@
  * @author      Daniel T. Gorski, <[email protected]>
  * @copyright   (C) Daniel T. Gorski, {@link http://www.develnet.org}
  * @license     http://www.gnu.org/licenses/gpl.html
- * @version     $Revision: 1.14 $
+ * @version     $Revision: 1.15 $
  *
  */
 
@@ -263,6 +263,8 @@
     public function close() {
         if ($this->rLink) {
             @mysqli_close($this->rLink);
+
+            $this->rLink = null;
         }
     }