Forum Moderators: coopster
"Allowed memory size of 33554432 bytes exhausted (tried to allocate 43 bytes)"
I checked through my code and all the objects are set to NULL after use. Nothing else seems to be wrong. What could be causing this and how do I stop it? I think I need a refresher on how PHP works. I'm using PHP as an Apache module.
I'm not interested in upping PHP memory allocation but finding the root cause.
Thank you!
I even tried creating a single object outside the loop and reusing. I got more bang for the buck, but the error persists.
I did not solve the above problem, but worked around it by using exec() inside the loop calling a separate script. This way each iteration frees memory completely.
Thanks!