PHPExcel-添加缓存后:ERR\u EMPTY\u响应

PHPExcel-添加缓存后:ERR\u EMPTY\u响应,php,phpexcel,Php,Phpexcel,在我遇到超出内存限制的问题后,我将缓存函数添加到phpexcel调用中。现在可以完全读取excel,但每次之后我都会收到一个错误:ERR\u EMPTY\u RESPONSE 以下是我的PHPExcel调用代码: $cacheMethod = PHPExcel_CachedObjectStorageFactory:: cache_to_phpTemp; $cacheSettings = array( ' memoryCacheSize ' => '8MB'); PHPExcel_Setti

在我遇到超出内存限制的问题后,我将缓存函数添加到phpexcel调用中。现在可以完全读取excel,但每次之后我都会收到一个错误:ERR\u EMPTY\u RESPONSE

以下是我的PHPExcel调用代码:

$cacheMethod = PHPExcel_CachedObjectStorageFactory:: cache_to_phpTemp;
$cacheSettings = array( ' memoryCacheSize ' => '8MB');
PHPExcel_Settings::setCacheStorageMethod($cacheMethod, $cacheSettings);
/** Create a new Reader of the type defined in $inputFileType **/
$objReader = PHPExcel_IOFactory::createReader('Excel2007');
/** Advise the Reader that we only want to load cell data, not formatting **/
$objReader->setReadDataOnly(true);
$excel = $objReader->load($file);
我希望你能帮助我。
谢谢

由于ERR_EMPTY_响应不是由PHPExcel生成的错误,您的代码还做了什么才能生成此响应?请注意
$cacheSettings=array('memoryCacheSize'=>'8MB')
无效,您不应该在
memoryCacheSize
周围有空格:它应该是
$cacheSettings=array('memoryCacheSize'=>'8MB')