I have written a Smarty modifier that uses the PHP Simple HTML DOM parser class (http://simplehtmldom.sourceforge.net/) to clean-up and convert some HTML that's stored in an Oracle DB table. The PHP script queries the DB, gets the results in an array, assigns the array to a Smarty variable, and then the template iterates over the results in the array, applying the modifier to each and every one of them.
When the number of elements in the array is big (around 3000) the whole script dies silently after about 2 minutes, with no errors, warning or anything logged anywhere (checked PHP and Apache logs). In fact, it seems to die while still processing and outputing the response, and it dies in slightly different points every time.
I have set all PHP and Apache config parameters to very high limits, e.g. max_execution_time = 600
, memory_limit = 512M
, etc.
I suspect it may have to do with a browser timeout (using Firefox 12 and IE 8, can't test with other browsers in our work environment), but I couldn't find any information on how to change this setting. I tried setting in Firefox the property network.http.keep-alive.timeout
to 300 (it was 115, suspiciously close to 2 minutes), but it didn't help.
Any ideas?