Let's say we have memory_limit = 16M
I have a script that processes two 9MB-each images. If this script processes the first one and then the second one of course chronologically will the second one "overflow" the memory limit or PHP destroys and frees the memory once it has done with the first image even if the script it's still running?
What I think is that unless I need it later in the script I should destroy it in memory so it could be available for next file (?).
What if the script gets the files FROM un upload form with those 2 files? In that case the memory limit will be reached instantly?