Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:53339 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 49035 invoked from network); 16 Jun 2011 17:37:03 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 16 Jun 2011 17:37:03 -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.54 cause and error) X-PHP-List-Original-Sender: rasmus@lerdorf.com X-Host-Fingerprint: 74.125.82.54 mail-ww0-f54.google.com Received: from [74.125.82.54] ([74.125.82.54:64753] helo=mail-ww0-f54.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 47/10-47775-D3F3AFD4 for ; Thu, 16 Jun 2011 13:37:02 -0400 Received: by wwd20 with SMTP id 20so1687834wwd.11 for ; Thu, 16 Jun 2011 10:36:58 -0700 (PDT) Received: by 10.227.98.9 with SMTP id o9mr1211664wbn.25.1308245818654; Thu, 16 Jun 2011 10:36:58 -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 d19sm321530wbh.8.2011.06.16.10.36.55 (version=SSLv3 cipher=OTHER); Thu, 16 Jun 2011 10:36:56 -0700 (PDT) Message-ID: <4DFA3F36.6000707@lerdorf.com> Date: Thu, 16 Jun 2011 18:36:54 +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: Stas Malyshev CC: Pascal COURTOIS , 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> <4DFA3016.9030409@sugarcrm.com> In-Reply-To: <4DFA3016.9030409@sugarcrm.com> X-Enigmail-Version: 1.1.2 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Subject: Re: [PHP-DEV] Give the Language a Rest motion (fwd) From: rasmus@lerdorf.com (Rasmus) On 06/16/2011 05:32 PM, Stas Malyshev wrote: > Hi! > >> 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 > > You actually can't call huge amount of these in one request, as this > particular leak is caused by bailing out from zend_execute_scripts, > which causes main op array not be freed. zend_execute_scripts() is > called only once, so you can't have this leak multiple times as far as I > can see. Whatever caused the original problem, it's highly unlikely it > is this leak. I was thinking it was a bunch of nested eval()'s that might cause this. An exit from within an eval'ed op_array would cause this same leak I think. But yes, I agree, in order to leak 128M or whatever it was he said, it is unlikely that it is due to this. -Rasmus