Re:How to Fix PHP's Most Annoying Error
by trebor on Tuesday September 16, 2014 @11:49AM
(#8325074)
This should be titled "how to find a memory leak". It's a very basic article on memory management and how to find a memory leak.
[ Parent
| on HN ]
Re:How to Fix PHP's Most Annoying Error
by laumars on Tuesday September 16, 2014 @12:00PM
(#8325148)
It's not technically a memory leak though. It's more to do with finding errors in your code that use unexpectedly large quantities of memory. But since everything is being allocated and deallocated correctly, you're not actually leaking any memory (which I guess you could argue, makes the article even more basic).
In any case, you're right that the title is a little misleading, but pedantry aside, it's still a useful resource.
Re:How to Fix PHP's Most Annoying Error
by 2upmedia on Tuesday September 16, 2014 @12:42PM
(#8325404)
@trebor: yes, just like @laumars mentioned this article talks very little about memory leaks. Ever since PHP 5.3 the Garbage Collector was introduced which took care of the biggest contributor to memory leaks: circular references in objects. This article talks more about reducing high memory usage which can happen in any version of PHP.