|
From: <php...@li...> - 2008-11-13 13:40:17
|
Hi,
> If I am following what you are saying, then if I run a
> query that takes
> longer than 30 seconds on the backend database server, the
> PHP process on
> the server will die before the result set is returned.
The result set is returned and php will process further statements until the maximum execution time set in your php.ini file is reached. wait() states do not count as execution time.
> If so, when is the allocated memory reclaimed?
The reference counter reclaims unused memory immediately, i.e. __destruct() is called even before the next statement is executed. Cycles will be reclaimed when the script terminates.
> problem if I ever run a query that takes longer than 30
Your client may not be interested in the result anymore... :)
Regards,
Jost Boekemeier
|