From 4ac95ac24ca44693dc72f91a5bc90eb28a8d95e5 Mon Sep 17 00:00:00 2001 From: Mark Baker Date: Thu, 23 May 2013 12:37:02 +0100 Subject: [PATCH] GH-186 - sqlite OOP doesn't have a close method, need to use a procedural close --- Classes/PHPExcel/CachedObjectStorage/SQLite.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Classes/PHPExcel/CachedObjectStorage/SQLite.php b/Classes/PHPExcel/CachedObjectStorage/SQLite.php index bab179ad..5a72f6f4 100644 --- a/Classes/PHPExcel/CachedObjectStorage/SQLite.php +++ b/Classes/PHPExcel/CachedObjectStorage/SQLite.php @@ -284,7 +284,7 @@ class PHPExcel_CachedObjectStorage_SQLite extends PHPExcel_CachedObjectStorage_C public function __destruct() { if (!is_null($this->_DBHandle)) { $this->_DBHandle->queryExec('DROP TABLE kvp_'.$this->_TableName); - $this->_DBHandle->close(); + sqlite_close($this->_DBHandle); } $this->_DBHandle = null; } // function __destruct()