Fix PHPExcel object destructor
This commit is contained in:
parent
5451b63cdc
commit
6fd6b4d044
@ -143,8 +143,9 @@ class PHPExcel
|
||||
$this->addCellStyleXf(new PHPExcel_Style);
|
||||
}
|
||||
|
||||
/**
|
||||
* Destroy this workbook
|
||||
/**
|
||||
* Code to execute when this worksheet is unset()
|
||||
*
|
||||
*/
|
||||
public function __destruct() {
|
||||
PHPExcel_Calculation::unsetInstance($this);
|
||||
@ -177,14 +178,6 @@ class PHPExcel
|
||||
return $this->_calculationEngine;
|
||||
} // function getCellCacheController()
|
||||
|
||||
/**
|
||||
* Code to execute when this worksheet is unset()
|
||||
*
|
||||
*/
|
||||
function __destruct() {
|
||||
$this->disconnectWorksheets();
|
||||
}
|
||||
|
||||
/**
|
||||
* Get properties
|
||||
*
|
||||
|
Loading…
Reference in New Issue
Block a user