GH-186 - sqlite OOP doesn't have a close method, need to use a procedural close

This commit is contained in:
Mark Baker 2013-05-23 12:37:02 +01:00
parent c17a4a62a3
commit 4ac95ac24c
1 changed files with 1 additions and 1 deletions

View File

@ -284,7 +284,7 @@ class PHPExcel_CachedObjectStorage_SQLite extends PHPExcel_CachedObjectStorage_C
public function __destruct() { public function __destruct() {
if (!is_null($this->_DBHandle)) { if (!is_null($this->_DBHandle)) {
$this->_DBHandle->queryExec('DROP TABLE kvp_'.$this->_TableName); $this->_DBHandle->queryExec('DROP TABLE kvp_'.$this->_TableName);
$this->_DBHandle->close(); sqlite_close($this->_DBHandle);
} }
$this->_DBHandle = null; $this->_DBHandle = null;
} // function __destruct() } // function __destruct()