GH-186 - sqlite OOP doesn't have a close method, need to use a procedural close
This commit is contained in:
parent
c17a4a62a3
commit
4ac95ac24c
|
@ -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()
|
||||
|
|
Loading…
Reference in New Issue