mirror of
https://github.com/retailcrm/PHPExcel.git
synced 2025-03-29 11:19:55 +03:00
Fix PHPExcel object destructor
This commit is contained in:
parent
5451b63cdc
commit
6fd6b4d044
1 changed files with 3 additions and 10 deletions
|
@ -144,7 +144,8 @@ class PHPExcel
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Destroy this workbook
|
* Code to execute when this worksheet is unset()
|
||||||
|
*
|
||||||
*/
|
*/
|
||||||
public function __destruct() {
|
public function __destruct() {
|
||||||
PHPExcel_Calculation::unsetInstance($this);
|
PHPExcel_Calculation::unsetInstance($this);
|
||||||
|
@ -177,14 +178,6 @@ class PHPExcel
|
||||||
return $this->_calculationEngine;
|
return $this->_calculationEngine;
|
||||||
} // function getCellCacheController()
|
} // function getCellCacheController()
|
||||||
|
|
||||||
/**
|
|
||||||
* Code to execute when this worksheet is unset()
|
|
||||||
*
|
|
||||||
*/
|
|
||||||
function __destruct() {
|
|
||||||
$this->disconnectWorksheets();
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Get properties
|
* Get properties
|
||||||
*
|
*
|
||||||
|
|
Loading…
Add table
Reference in a new issue