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 <[EMAIL PROTECTED]>
To: Bruce Bailey <[EMAIL PROTECTED]>
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
[EMAIL PROTECTED]  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

--
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to