Hello,

I'm using Zend_Dom to parse some web pages in a loop
The loop is very long (200000 pages)
I note that for every cycle the memory used by php grow
It seems that Zend_Dom don't release the memory used after any loop
The code is similar to this.

foreach($urlArray as $url)
{
    $response = getHTM($url);//simple function using fopen, the problem
isn't here
    $dom = new Zend_Dom_Query($response);
    ...
    //do something with a $dom->query

    unset($dom);
}

The memory limit in my php ini is 1GB
After 20000 iterations there is an error of out of memory

Somebody could help me??

Thanks!

Marco
-- 
View this message in context: 
http://www.nabble.com/Zend_Dom-out-of-memory-tp21125082p21125082.html
Sent from the Zend Framework mailing list archive at Nabble.com.

Reply via email to