News for hackers. Stuff that matters.
Re:Php 5.4 vs 5.3: is really fast and with less memory leaks by pilif on Tuesday February 07, 2012 @03:12AM (#3560954)
Why is the title talking about memory leaks? The listed benchmark is comparing "PHP/O+ memory usage". Memory usage isn't memory leaks.

Just because something uses a lot of memory doesn't mean it's leaking memory. Only when that used memory never gets freed or reused you can talk of leaks.

The linked benchmark isn't taking this into account /at all/. It's just measuring memory usage.

From my own experience with PHP, while it's using a lot of memory at times, it doesn't usually leak it, unless you produce code that cause it to leak (circular references before the GC days), but that's really the programmers responsibility.

Re:Php 5.4 vs 5.3: is really fast and with less memory leaks by kijin on Tuesday February 07, 2012 @04:47AM (#3561164)
The last time I suffered a huge memory leak in PHP was with HTML Purifier on PHP 5.2. It was impossible to process more than a few documents at a time, even from the CLI, because HTML Purifier seemed to leak every byte of memory it used. Lots of circular references.

With PHP 5.3 with the new GC and the latest version of HTML Purifier, there is no memory leak anymore. PHP has come a long way since the days when you had to respawn Apache processes every 500 requests.