Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:53330 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 4100 invoked from network); 16 Jun 2011 12:03:51 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 16 Jun 2011 12:03:51 -0000 Authentication-Results: pb1.pair.com smtp.mail=rasmus@lerdorf.com; spf=permerror; sender-id=unknown Authentication-Results: pb1.pair.com header.from=rasmus@lerdorf.com; sender-id=unknown Received-SPF: error (pb1.pair.com: domain lerdorf.com from 74.125.82.170 cause and error) X-PHP-List-Original-Sender: rasmus@lerdorf.com X-Host-Fingerprint: 74.125.82.170 mail-wy0-f170.google.com Received: from [74.125.82.170] ([74.125.82.170:55790] helo=mail-wy0-f170.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 25/90-32650-621F9FD4 for ; Thu, 16 Jun 2011 08:03:51 -0400 Received: by wyb34 with SMTP id 34so1101534wyb.29 for ; Thu, 16 Jun 2011 05:03:47 -0700 (PDT) Received: by 10.217.1.212 with SMTP id n62mr922005wes.25.1308225827223; Thu, 16 Jun 2011 05:03:47 -0700 (PDT) Received: from [10.214.2.62] (host86-189-17-34.range86-189.btcentralplus.com [86.189.17.34]) by mx.google.com with ESMTPS id d19sm85552wbh.59.2011.06.16.05.03.45 (version=SSLv3 cipher=OTHER); Thu, 16 Jun 2011 05:03:45 -0700 (PDT) Message-ID: <4DF9F120.1020704@lerdorf.com> Date: Thu, 16 Jun 2011 13:03:44 +0100 User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.17) Gecko/20110516 Thunderbird/3.1.10 MIME-Version: 1.0 To: Pascal COURTOIS CC: Internals Mailing List References: <8757232E56758B42B2EE4F9D2CA019C9014CE547@US-EX2.zend.net> <8757232E56758B42B2EE4F9D2CA019C9014D10DC@US-EX2.zend.net> <4DF9913B.4030404@nouvo.com> <4DF99EE8.3070204@nouvo.com> <1308216968.2406.3.camel@guybrush> <4DF9D4DF.90405@nouvo.com> <4DF9DB9B.40500@lerdorf.com> <4DF9DDAB.3000109@nouvo.com> <4DF9EC08.10600@lerdorf.com> In-Reply-To: <4DF9EC08.10600@lerdorf.com> X-Enigmail-Version: 1.1.2 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Subject: Re: [PHP-DEV] Give the Language a Rest motion (fwd) From: rasmus@lerdorf.com (Rasmus) On 06/16/2011 12:42 PM, Rasmus wrote: > On 06/16/2011 11:40 AM, Pascal COURTOIS wrote: >> Le 16/06/2011 12:31, Rasmus a écrit : >>> On 06/16/2011 11:03 AM, Pascal COURTOIS wrote: >>>> If you followed the thread you have seen the reduced test case is >>>> VERY short and the ONLY constructions involved are user functions and >>>> exceptions. FULL STOP. Not even a single addition nor a loop nor nothing. >>>> I can't imagine nobody uses user functions and exceptions. >>> >>> You might also consider that your particular case is rather unique. I >> >> since decoder-php@own-hero.net could reduce the case from my original >> program in the conditions I stated, he could obvously detect the leaks. > > I'm not saying there aren't any. There are known leaks in compile_file() > when you throw an exception like that, so if you call a huge amount of > these within a single request, you are going to have problems. But that > is not something the average person hits, and again, they are all > free'ed on request shutdown, so it isn't like it is a persistent leak. I was bit unclear there. The cause of the leaks is the exit() in your exception, not the exception itself. -Rasmus