I'm working on a project where I recieve a big SOAP result (about 250 M😎 that I need to parse. I get out of memory errors all the time - now I have set memory_limit to 1024 MB, and it does not feel good.
$client = new SoapClient("http://www.example.com/soap/?WSDL", array("location"=>"http://www.example.com/soap/");
$data = $client->getInfo();
foreach($data as $row)
{
// do stuff
}
Any ideas how I can reduce memory usage, or at least free some while parsing data?