From d8850176a163afcf43f987be1e8dffceab5b1cfc Mon Sep 17 00:00:00 2001 From: Carlos Montiers Date: Fri, 26 Aug 2016 22:07:12 +0900 Subject: [PATCH] php://temp maxmemory must be expressed in bytes --- src/PhpSpreadsheet/CachedObjectStorage/PHPTemp.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/PhpSpreadsheet/CachedObjectStorage/PHPTemp.php b/src/PhpSpreadsheet/CachedObjectStorage/PHPTemp.php index 185a35ad..ea2664c9 100644 --- a/src/PhpSpreadsheet/CachedObjectStorage/PHPTemp.php +++ b/src/PhpSpreadsheet/CachedObjectStorage/PHPTemp.php @@ -172,7 +172,7 @@ class PHPTemp extends CacheBase implements ICache */ public function __construct(\PhpSpreadsheet\Worksheet $parent, $arguments) { - $this->memoryCacheSize = (isset($arguments['memoryCacheSize'])) ? $arguments['memoryCacheSize'] : '1MB'; + $this->memoryCacheSize = (isset($arguments['memoryCacheSize'])) ? $arguments['memoryCacheSize'] : 1 * 1024 * 1024; parent::__construct($parent); if (is_null($this->fileHandle)) {