Re: Re: looking for a way to manually free memory in the middle of a script

From: Date: Tue, 03 Feb 2004 05:10:32 +0000
Subject: Re: Re: looking for a way to manually free memory in the middle of a script
References: 1 2  Groups: php.general 
Request: Send a blank email to php-general+get-176659@lists.php.net to get a copy of this message
On Feb 2, 2004, at 7:15 PM, Justin Patrin wrote:
Kumar McMillan wrote: If this does happen to be a GD or PHP memory leak, I would suggest writing a driver script which calls a sub-script which does the processing. Have the driver keep track of all of the files and hand one (or some number) to the processor, which processes them. Use system() to call the processor.
ahhh... works so much smoother. did a little switch with getopt() and used the same file as the subscript too. after doing this though I can see the memory explosion happening on the same image files so I take it there is something up with those files and not a memory leak in imagecreatefromjpg() when called repeatedly. Either way, calling a separate process allowed me to isolate the problem files and get on with the show. thanks, Kumar
-- paperCrane <Justin Patrin> -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php


« previous php.general (#176659) next »