I wasn't talking about PHP failing to release memory within a given
script. The leak I was encountering persists after the script has
completed execution. When PHP is running as an Apache module on
Windows, this would lead eventually to a server crash.
I've spend a bit of time with PHP 5 beta 2 and I can report happily
that memory management is much better. A script that would grind to a
halt in PHP4 is able to run uneventfully in PHP5.
Zurab Davitiani <ag*@mindless.com> wrote in message news:<wE*******************@newssvr25.news.prodigy .com>...
Chung Leong wrote on Friday 28 November 2003 20:44:
In my own experience I've found that COM doesn't work very well in
PHP4. It has a way of rapidly leaking memory. You might want to stick
with using ASP if you must make use of COM objects.
It's not just COM. In my experience, there is no way to free the memory
that's taken up by any object in PHP until the script execution ends. This
applies to PHP4; I haven't tested PHP5 yet.