Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:7665 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 91316 invoked by uid 1010); 9 Feb 2004 14:27:54 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 91292 invoked from network); 9 Feb 2004 14:27:54 -0000 Received: from unknown (HELO smtp1.netcologne.de) (194.8.194.112) by pb1.pair.com with SMTP; 9 Feb 2004 14:27:54 -0000 Received: from localhost.localdomain (xdsl-213-196-195-213.netcologne.de [213.196.195.213]) by smtp1.netcologne.de (Postfix) with SMTP id 270D638DE0 for ; Mon, 9 Feb 2004 15:27:52 +0100 (MET) Date: Mon, 9 Feb 2004 15:27:52 +0100 To: internals@lists.php.net Message-ID: <20040209152752.749cbfff@localhost.localdomain> In-Reply-To: References: <20040209150718.7e915311@localhost.localdomain> Organization: Freelancer X-Mailer: Sylpheed version 0.9.8claws (GTK+ 1.2.10; i686-pc-linux-gnu) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Subject: Re: [PHP-DEV] unset, memory_limit From: paj@pearfr.org (Pierre-Alain Joye) On Mon, 9 Feb 2004 15:14:46 +0100 (CET) Derick Rethans wrote: > > So this is bug is bogus, and this is the expected behavior. Unset > > (or set the var null) frees the memory only if memory_limit is > > enabled and not equal to -1 (unlimited) for both php5 and php4. > > memory_limit has nothing to with the real memory usage. m_l only is > internal emalloc'ed and efree'd memory. Not sure if I got the idea ;). If compiled with m_l, unset frees the var and the mem. If not, the mem is still allocated. Btw I was wrong, memory_limit set to -1 works too. > > Or is there any "performance" issues there? > > I think it's a default unix thing actually :) Hmm, I'm missing something here. If I understand this is due to my poor linux if I can't free the mem in my php script? :) but only if I use the memory_limit option. pierre