I've been working on a large group of PHP scripts, and suddenly none of them will run anymore at all. I looked in my error_log file and found this error:
PHP Fatal error: Allowed memory size of 134217728 bytes exhausted (tried to allocate 2887680 bytes) in myFile.php on line LINE
I've worked with PHP before, and this is the first time I've run into memeory leaks -- I feel like a newbie; I didn't even know PHP could have memory leaks! It's an interesting learning experience, to be sure, but it's kind of putting a crimp in my development -- since I can't run any scripts now, I can't continue developing.
Does anyone know how to clear the PHP memory that is allocated? Also, is there an easy way to unallocate all objects created across scripts during a session? I thought using session_unset and session_destroy would work, but apparently they don't do that.
If anyone could give me some pointers here (haha, pointers, appropriate for a memory leak question ), I'd really appreciate it.