From: Reini U. <ru...@x-...> - 2005-04-03 10:13:38
|
Joel Uckelman schrieb: > Thus spake Reini Urban: >>That memory hunger started with 1.3.4 when output buffering for our >>templates was introduced. >>Before we preg_replace'd the vars and did some simple logic with magic >>### markers. This was fast and needed no memory at all, but lead to >>dirty template syntax. >>The big thing is really a php bug, the various Load/SavePages loop, >>which doesn't free its internal memory after rendering each page. > > I wonder whether strategic placement of a few unset()'s would mitigate the > problem? I thought that data was garbage-collected when the ref count dropped > to zero. Is it possible that we have a circular reference somewhere? I actually unset every possible var, and also checked the destructors with possible external ressources (mysql handles and query results). It could be a circular ref left over. But I searched for almost one year for such a beast and found nothing. So I rather suspect it's php itself, which I didn't compile for memory tracing, yet. -- Reini Urban http://xarch.tu-graz.ac.at/home/rurban http://phpwiki.org |