Richard

Thanks very much for your replies -- I need all the help I can get :)

In any case, I was under the impression from the php.ini setting 'session.gc_probability' that script memory was not necessarily freed when the script ends. Is this not correct?

Bruce


From: "Richard Lynch" <[EMAIL PROTECTED]>
Reply-To: [EMAIL PROTECTED]
To: "Bruce Bailey" <[EMAIL PROTECTED]>
Subject: Re: [PHP-DEV] Temporarily overriding memory limit in extension
Date: Fri, 1 Dec 2006 14:41:35 -0600 (CST)

Not only is the php.ini value reset, all the stuff your script
allocated is gone when the script ends anyway.

Not counting any kind of "fork" or something you did in SQL or shell
or something that chewed up memory, of course, but anything PHP has
control over is cleared out.

On Fri, December 1, 2006 12:32 pm, Bruce Bailey wrote:
> 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
>
>


--
Some people have a "gift" link here.
Know what I want?
I want you to buy a CD from some starving artist.
http://cdbaby.com/browse/from/lynch
Yeah, I get a buck. So?


_________________________________________________________________
Get the latest Windows Live Messenger 8.1 Beta version. Join now. http://ideas.live.com

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

Reply via email to