clear memory after loading xlsx file

Topics: Developer Forum, Project Management Forum, User Forum
Oct 21, 2008 at 10:09 AM
Hi :)

I do something like that

$objReader = PHPExcel_IOFactory::createReader('Excel2007');
$objReader->setReadDataOnly(true);
$objPHPExcel = $objReader->load($_FILES['file']['tmp_name']);

next I make some operations [get some data to array etc]

it is possible to clear memory? Because after loading file with many rows script use 50 MB of memory and more

i try to
unset($objReader);
unset($objPHPExce);

but it doens't help

it is clearing possible?
could anybody help?
Developer
Oct 22, 2008 at 1:50 AM
This is a known issue. I tried to summarize what has been previously been said about this issue. Please look here:
http://www.codeplex.com/PHPExcel/Thread/View.aspx?ThreadId=38176