This code is part of a bigger program but I identified this as the problem. I simply need to get the same values at the same indexes of arrays and this is the code I have written: and it gives me this error: Allowed memory size of 33554432 bytes exhausted (tried to allocate 33554440 bytes) Adding more memory here is
Tag: memory-leaks
Memory leak when executing Doctrine query in loop
I’m having trouble in locating the cause for a memory leak in my script. I have a simple repository method which increments a ‘count’ column in my entity by X amount: Problem is, if I call this in a loop the memory usage balloons on every iteration: What am I missing here? I’ve tried ->clear(), as per Doctrine’s advice on
PHP Imagick memory leak
I have to render something with Imagick on PHP CLI. I have noticed that every 3-5 days the server memory gets full, so i can’t even connet via ssh or ftp. with memory_get_usage() i narrwoed the memory leak down to the imagick part of the script. the script looks something like this: I destroy the image reference, and unset the