php://temp maxmemory must be expressed in bytes

This commit is contained in:
Carlos Montiers 2016-08-26 22:07:12 +09:00 committed by Adrien Crivelli
parent f02c3320a2
commit d8850176a1
No known key found for this signature in database
GPG Key ID: B182FD79DC6DE92E
1 changed files with 1 additions and 1 deletions

View File

@ -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)) {