Bugfix: Work Item GH-193 - Fix to empty worksheet garbage collection when using cell caching

This commit is contained in:
Mark Baker
2013-12-29 23:48:42 +00:00
parent 30070f35c2
commit 2bcaa01ecc
11 changed files with 11 additions and 10 deletions
@@ -43,7 +43,7 @@ class PHPExcel_CachedObjectStorage_MemorySerialized extends PHPExcel_CachedObjec
* @throws PHPExcel_Exception
*/
protected function _storeData() {
if ($this->_currentCellIsDirty) {
if ($this->_currentCellIsDirty && !empty($this->_currentObjectID)) {
$this->_currentObject->detach();
$this->_cellCache[$this->_currentObjectID] = serialize($this->_currentObject);