Re: Temporarily overriding memory limit in extension

From: Date: Fri, 01 Dec 2006 18:32:05 +0000
Subject: Re: Temporarily overriding memory limit in extension
References: 1  Groups: php.internals 
Request: Send a blank email to internals+get-26751@lists.php.net to get a copy of this message
Thanks, that might work to change the limit. When I reset it at the end of the script, wouldn't the next script to be run by the Apache child be aborted since the amount of memory in use is now over the limit? Bruce
From: Stanislav Malyshev <stas@zend.com> To: Bruce Bailey <bruce1828@hotmail.com> CC: internals@lists.php.net Subject: Re: [PHP-DEV] Temporarily overriding memory limit in extension Date: Fri, 01 Dec 2006 10:11:48 -0800
Hi Some of my PHP scripts use a large volume of memory. Is there a way I can: 1) Increase the script memory limit, and 2) Force a garbage collect at script end (and reset the limit).
From PHP, I guess you could do ini_set("memory_limit"), unless you are running in safe mode. -- Stanislav Malyshev, Zend Products Engineer stas@zend.com http://www.zend.com/ -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php
_________________________________________________________________ All-in-one security and maintenance for your PC.  Get a free 90-day trial! http://clk.atdmt.com/MSN/go/msnnkwlo0050000002msn/direct/01/?href=http://clk.atdmt.com/MSN/go/msnnkwlo0050000001msn/direct/01/?href=http://www.windowsonecare.com/?sc_cid=msn_hotmail

« previous php.internals (#26751) next »