RE: [PHP-DEV] CGI quick cleanup

2001-11-26 Thread Andi Gutmans
At 09:33 AM 11/26/2001 +, Sam Liddicott wrote: > > -Original Message- > > From: Andi Gutmans [mailto:[EMAIL PROTECTED]] > > Sent: 24 November 2001 01:21 > > To: Sam Liddicott; Sam Liddicott; [EMAIL PROTECTED] > > Subject: RE: [PHP-DEV] CGI quick clean

RE: [PHP-DEV] CGI quick cleanup

2001-11-26 Thread Sam Liddicott
> -Original Message- > From: Andi Gutmans [mailto:[EMAIL PROTECTED]] > Sent: 24 November 2001 01:21 > To: Sam Liddicott; Sam Liddicott; [EMAIL PROTECTED] > Subject: RE: [PHP-DEV] CGI quick cleanup > > > The problem you are experiencing is due to the

RE: [PHP-DEV] CGI quick cleanup

2001-11-26 Thread Sam Liddicott
> -Original Message- > From: Andi Gutmans [mailto:[EMAIL PROTECTED]] > Sent: 24 November 2001 01:21 > To: Sam Liddicott; Sam Liddicott; [EMAIL PROTECTED] > Subject: RE: [PHP-DEV] CGI quick cleanup > > > The problem you are experiencing is due to the

RE: [PHP-DEV] CGI quick cleanup

2001-11-24 Thread Andi Gutmans
The problem you are experiencing is due to the fast cache. Edit Zend/zend_fast_cache.h and change: # define ZEND_ENABLE_FAST_CACHE 1 to: # define ZEND_ENABLE_FAST_CACHE 0 Make sure you do a complete rebuild. Tomorrow I'll try and think of what the best way to fix it is. (3:20 AM here :) Andi A

Re: [PHP-DEV] CGI quick cleanup

2001-11-23 Thread Andi Gutmans
The reason for this is most probably because during shutdown we decrement many reference counts and free each memory block separately. Theoretically we could just exit without doing any freeing of memory but we have to find a solution for freeing resources (maybe directly in the resource list a

RE: [PHP-DEV] CGI quick cleanup

2001-11-23 Thread Sam Liddicott
Here's a sample script that does most of the sorts of stuff I was doing apart from database work. Note how long it takes to exit after finishing. #! /usr/bin/php -q 0) $this->ref=&new thingy($c-1); } } $stash=array(); $max=50; $start=time(); for($i=0;$i<$max;$i++) { $r=rand(0,300);

Re: [PHP-DEV] CGI quick cleanup

2001-11-23 Thread Markus Fischer
On Fri, Nov 23, 2001 at 11:28:02AM -, Sam Liddicott wrote : > Hmm. What do I need to do to get this documented then? Oh well, talk so some phpdoc guy directly or just open a bug report about it I guess? - MArkus -- PHP Development Mailing List To unsubsc

RE: [PHP-DEV] CGI quick cleanup

2001-11-23 Thread Sam Liddicott
> -Original Message- > From: Markus Fischer [mailto:[EMAIL PROTECTED]] > Sent: 23 November 2001 11:16 > To: Sam Liddicott > Cc: [EMAIL PROTECTED]; [EMAIL PROTECTED] > Subject: Re: [PHP-DEV] CGI quick cleanup > > > On Fri, Nov 23, 2001 at 11:01:03AM -, Sa

Re: [PHP-DEV] CGI quick cleanup

2001-11-23 Thread Markus Fischer
On Fri, Nov 23, 2001 at 11:01:03AM -, Sam Liddicott wrote : > To solve THIS problem I added ap_child_terminate support to php so you could > request apache to terminate after the page, though this seems to have been > dropped in later releases. > The patch was accepted and did appear in at le

Re: [PHP-DEV] CGI quick cleanup

2001-11-23 Thread Edin Kadribasic
> > I have noticed the same problem with a scipt that used a very large array > > (~160 MB). The script run time was around 35 seconds, while it took over 4 > > minutes to shut down! Same amount of time was used in trying to unset() the > > array. > > [wild guess] > probably the memory deallocatio

Re: [PHP-DEV] CGI quick cleanup

2001-11-23 Thread Markus Fischer
On Fri, Nov 23, 2001 at 11:50:17AM +0100, Edin Kadribasic wrote : > I have noticed the same problem with a scipt that used a very large array > (~160 MB). The script run time was around 35 seconds, while it took over 4 > minutes to shut down! Same amount of time was used in trying to unset() the

RE: [PHP-DEV] CGI quick cleanup

2001-11-23 Thread Sam Liddicott
> -Original Message- > From: Teodor Cimpoesu [mailto:[EMAIL PROTECTED]] > Sent: 23 November 2001 10:54 > To: [EMAIL PROTECTED] > Subject: Re: [PHP-DEV] CGI quick cleanup > > > Hi Edin! > On Fri, 23 Nov 2001, Edin Kadribasic wrote: > > > I have n

Re: [PHP-DEV] CGI quick cleanup

2001-11-23 Thread Teodor Cimpoesu
Hi Edin! On Fri, 23 Nov 2001, Edin Kadribasic wrote: > I have noticed the same problem with a scipt that used a very large array > (~160 MB). The script run time was around 35 seconds, while it took over 4 > minutes to shut down! Same amount of time was used in trying to unset() the > array. [wi

Re: [PHP-DEV] CGI quick cleanup

2001-11-23 Thread Edin Kadribasic
t; <[EMAIL PROTECTED]> To: "Sam Liddicott" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]> Sent: Friday, November 23, 2001 11:41 AM Subject: RE: [PHP-DEV] CGI quick cleanup > I should add that without the kill -5 it takes longer for the script to > finally exit than it

RE: [PHP-DEV] CGI quick cleanup

2001-11-23 Thread Sam Liddicott
I should add that without the kill -5 it takes longer for the script to finally exit than it took to execute! Sam > -Original Message- > From: Sam Liddicott [mailto:[EMAIL PROTECTED]] > Sent: 23 November 2001 10:35 > To: [EMAIL PROTECTED] > Subject: [PHP-DEV] CGI quick cleanup > > > I