Click to See Complete Forum and Search --> : PHP [RESOLVED] Behavior if script terminates before reaching imagedestroy


BioPhysEngr
July 4th, 2011, 01:35 PM
Does anyone know what happens to a script if an image file is being manipulated (as the result of a imagecreatetruecolor call) and the script terminates before reading the call to imagedestroy that would free the memory? Does termination of the script free the memory automatically or is a memory leak created? If the latter, is there a design pattern to avoid the failure to free memory?

Sorry for such a basic question; I read the PHP man page on the issue and was still confused.

PeejAvery
July 5th, 2011, 03:11 PM
Being that PHP is an interpreted language, resources are not kept past script execution.

BioPhysEngr
July 5th, 2011, 06:28 PM
Thanks!