PHPExcel - memory leak when I go through all rows
问题 I'm using PHPExcel library for reading xls and xlsx files. Below is a sample function for demonstrating problem that I have: public function memoryAction() { $filename = "example.xlsx"; echo "<br>Script started<br>"; echo memory_get_usage(true); $inputFileType = PHPExcel_IOFactory::identify($filename); $objReader = PHPExcel_IOFactory::createReader($inputFileType); $objReader->setReadDataOnly(true); $objReader->setLoadSheetsOnly(array('OTMS','Printing')); $excelReader = $objReader->load(