Skip to content

Commit 4ac95ac

Browse files
author
Mark Baker
committed
PHPOfficeGH-186 - sqlite OOP doesn't have a close method, need to use a procedural close
1 parent c17a4a6 commit 4ac95ac

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Classes/PHPExcel/CachedObjectStorage/SQLite.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -284,7 +284,7 @@ public function __construct(PHPExcel_Worksheet $parent) {
284284
public function __destruct() {
285285
if (!is_null($this->_DBHandle)) {
286286
$this->_DBHandle->queryExec('DROP TABLE kvp_'.$this->_TableName);
287-
$this->_DBHandle->close();
287+
sqlite_close($this->_DBHandle);
288288
}
289289
$this->_DBHandle = null;
290290
} // function __destruct()

0 commit comments

Comments
 (0)