Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:106117 Return-Path: Delivered-To: mailing list internals@lists.php.net Received: (qmail 46680 invoked from network); 30 Jun 2019 00:39:20 -0000 Received: from unknown (HELO mail-io1-f46.google.com) (209.85.166.46) by pb1.pair.com with SMTP; 30 Jun 2019 00:39:20 -0000 Received: by mail-io1-f46.google.com with SMTP id u19so11650425ior.9 for ; Sat, 29 Jun 2019 14:56:34 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=mudsite-com.20150623.gappssmtp.com; s=20150623; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=E39uFf8CnvceK3+0IeRRu/WvZbY6v7Rc/htEprFyY2M=; b=f0NV5lwsmnBflMJhb21zDJ+R4fgRhmsNbDW2PAHoYcgcC7NujOhIA+uD3Sk4QBPOL/ jTlrVrE7ErwlHhPCKENQ4dnTz4Jhykbo8YtgEXaLY3OKuDgO9B7xbjnyLiRcj6JSl0zH X75k1+8o0nYVVG9zbF0h7rmTdnBthJAhtBttuWBA9SWxb8JR6gqZ6dAhQfWKk5rRsm78 Mfz5toBrFkqeF3DNItiq2ilJndE9jpm/yTn0LEZN1EDbdLnT7OMnyX2IucS7Qt3l6TUT 051Wf5LQuV7Ersbcif9hRPT/CK0XPPs+1jiiiElaEDbl2xVlXdD6O5xPJ1s9NyLZWimM KupQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=E39uFf8CnvceK3+0IeRRu/WvZbY6v7Rc/htEprFyY2M=; b=alVY/mWfIOtJkpQyfN6IPcxKa7DQ/FS8zB5FrkC0qU1WeNhHoVWMkhQP4zvh+frOkJ 4K2pq73V3/S7r4oFUMRYQ/F618kXjcz8PTKBttVC0H9SR9nbXdNzuJaCgZIq+QwpQksn cspuSrtzB7lsp/03+BYqlVwkbo8RG3UEKsuh1Sh4PInndFc5iVLwsj6TmRfunIEszoBY 7plIvsMfj31DbWBb+u4aMSNr78FCK3HRX3p1mEnPubBvm2aeXaSRX7OpRReKsqcmGtCp hFQd1FkTbZGSqX7olrcnS5H/lVGC6g1mdJBB7EbgSZ7Vbf5XrvH2x8IEi+c33DHNSwTs XNcA== X-Gm-Message-State: APjAAAXBCaRPGb/x1vKaMIhgFdQvt3hBWMlZpfR1sllIe3+F15XwwqDA 5wBOHxviNkZhS0zLIxIEGkYvybsdoFJKCuhxEDUXnQ== X-Google-Smtp-Source: APXvYqyEPsjpWYPEb1JB1rBH6xYEEpbs16Ou19XGeBxXoH7mVUXserCbrGL5D7j5JcpnlrnYoq9jOGoFKzFEUO8WesA= X-Received: by 2002:a5d:8747:: with SMTP id k7mr4964801iol.20.1561845394127; Sat, 29 Jun 2019 14:56:34 -0700 (PDT) MIME-Version: 1.0 References: <8f07c0dc-f9a5-8c76-1d48-0fac762bfc4f@gmail.com> <92dba455-17df-41dd-c523-bb0db3c12078@gmail.com> <003b01d52e49$4db89390$e929bab0$@jhdxr.com> <000001d52e8f$a1f92b40$e5eb81c0$@jhdxr.com> In-Reply-To: Date: Sat, 29 Jun 2019 15:56:23 -0600 Message-ID: To: Nikita Popov Cc: Benjamin Morel , CHU Zhaowei , PHP Internals , Stanislav Malyshev Content-Type: multipart/alternative; boundary="000000000000e9561f058c7d7731" Subject: Re: [PHP-DEV] Memory leak in eval()'d code From: dave@mudsite.com (David Walker) --000000000000e9561f058c7d7731 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Sat, Jun 29, 2019 at 15:52 Nikita Popov wrote: > On Sat, Jun 29, 2019 at 11:25 PM Benjamin Morel > wrote: > > The leaked memory is an allocated but unused class > entry. We could plug that particular leak -- but I should emphasize that > the current behavior is incorrect and once the key collision issue is > resolved this will create a new class for each eval. To clarify; you=E2=80=99re saying that the behavior seen in the non scaled = case is kind of =E2=80=9Cwrong=E2=80=9D in the sense that it=E2=80=99s exposing the= big in naming of the anon class. Once the bug is resolved, the two behaviors shown should mimic each other, wherein the memory footprint would grow as in the example eval() case. =E2=80=94 Dave > > --000000000000e9561f058c7d7731--