Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:67439 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 97345 invoked from network); 17 May 2013 07:50:30 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 17 May 2013 07:50:30 -0000 Authentication-Results: pb1.pair.com header.from=ptr.wang@gmail.com; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=ptr.wang@gmail.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.216.171 as permitted sender) X-PHP-List-Original-Sender: ptr.wang@gmail.com X-Host-Fingerprint: 209.85.216.171 mail-qc0-f171.google.com Received: from [209.85.216.171] ([209.85.216.171:48094] helo=mail-qc0-f171.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 64/A3-09204-541E5915 for ; Fri, 17 May 2013 03:50:30 -0400 Received: by mail-qc0-f171.google.com with SMTP id n1so125341qcx.30 for ; Fri, 17 May 2013 00:50:27 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:x-received:in-reply-to:references:date:message-id :subject:from:to:cc:content-type; bh=lRquOIGdGVDBpxQo+Jc/09ev0gD+y30VjlDy1i8ziJk=; b=BDeVvURHQ2eNRiEJC7n9YL/nGwltNq6i3wK8uF3YBLm8aO7PZ07aHLSO9kvGAX8Q5t A6gKs/DaZ06IjX6mxKsG4TMN+U5mgo/xrLB6cr4Jl0Nw/WPhgOQjXUcE61cEY8nhsWMU jzhPz1nNIhthNNStZHR4swylCkigDeBlYMj+31xB2i2K6sWHb/J8zv8KxQZa+m8pWNo6 GGZFx9pzha7jng9XDlRQ0pfB0pEqsS+Kd5PFvlt8KUD/HKS+t7baCs2cTbIx+ZSw//SF LUtLxgI8nUms2/mcEI27BvQaGeemxg3nMIL12uOSITyaes2D1DHZlKBX2rlDqoupGNdu G/ZQ== MIME-Version: 1.0 X-Received: by 10.49.26.198 with SMTP id n6mr9590241qeg.16.1368777027603; Fri, 17 May 2013 00:50:27 -0700 (PDT) Received: by 10.229.202.198 with HTTP; Fri, 17 May 2013 00:50:27 -0700 (PDT) In-Reply-To: References: <5194A997.3080304@sugarcrm.com> Date: Fri, 17 May 2013 09:50:27 +0200 Message-ID: To: Stas Malyshev Cc: "internals@lists.php.net" Content-Type: multipart/alternative; boundary=047d7b67730481d6d604dce53c50 Subject: Re: [PHP-DEV] Memory leak in include()/require() ? From: ptr.wang@gmail.com (Peter Wang) --047d7b67730481d6d604dce53c50 Content-Type: text/plain; charset=ISO-8859-1 More information about this bug: To stably re-produce the bug, we need create 2 files. // file1.php, can be empty // leak.php wrote: > Hi, > > I found that the memory leak is actually related to APC, > even with the latest version of PHP (5.3.25) and latest version of APC > (3.1.13), > the memory leak is still there, to re-produce the bug, > just run this script and watch the memory usage of the php process > (please run with: php -d apc.enable_cli=1 ) > > > touch('file1.php'); > while (true) { > $file = 'file1.php'; > require($file); > } > > if run with -dapc.enable_cli=0, it does not leak memory. > > thanks. > > > On Thu, May 16, 2013 at 11:40 AM, Stas Malyshev wrote: > >> Hi! >> >> > hi, did anyone come across the memory leak of require()/include(), >> > I just saw this bug report: https://bugs.php.net/bug.php?id=47038, >> > but it was closed with nothing explained. >> >> This bug report was closed because the bug it describes was fixed. It is >> explained so right on the bug page. >> >> > the php version I used: >> > >> > php --version >> > PHP 5.3.6-13ubuntu3.9 with Suhosin-Patch (cli) (built: Sep 12 2012 >> 19:00:27) >> > Copyright (c) 1997-2011 The PHP Group >> > Zend Engine v2.3.0, Copyright (c) 1998-2011 Zend Technologies >> >> If you see the memory leak with current version (5.4.15/5.3.25) please >> submit a bug report containing the reproduction script and what happens >> when you run it. See the guidelines here: >> https://bugs.php.net/how-to-report.php >> >> >> -- >> Stanislav Malyshev, Software Architect >> SugarCRM: http://www.sugarcrm.com/ >> (408)454-6900 ext. 227 >> > > --047d7b67730481d6d604dce53c50--