Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:100757 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 50432 invoked from network); 22 Sep 2017 17:42:55 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 22 Sep 2017 17:42:55 -0000 Authentication-Results: pb1.pair.com header.from=php@golemon.com; sender-id=softfail Authentication-Results: pb1.pair.com smtp.mail=php@golemon.com; spf=softfail; sender-id=softfail Received-SPF: softfail (pb1.pair.com: domain golemon.com does not designate 209.85.220.175 as permitted sender) X-PHP-List-Original-Sender: php@golemon.com X-Host-Fingerprint: 209.85.220.175 mail-qk0-f175.google.com Received: from [209.85.220.175] ([209.85.220.175:43328] helo=mail-qk0-f175.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 86/AE-62331-C9B45C95 for ; Fri, 22 Sep 2017 13:42:53 -0400 Received: by mail-qk0-f175.google.com with SMTP id j5so1754197qkd.0 for ; Fri, 22 Sep 2017 10:42:52 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=golemon-com.20150623.gappssmtp.com; s=20150623; h=mime-version:sender:in-reply-to:references:from:date:message-id :subject:to:cc:content-transfer-encoding; bh=k/HxUPa8NpTsoaqBE4NZAZRvoBKLornwzKx2Qy4hv2w=; b=iZ9dr8V7Si0ucs+tP1hqgqfUJchxe169k6q94IjQ4Q2S7xmWBpZQOWDJOmk+ByBHw2 jknFiVc7gCKUcP9ODl01t1Kl7a74ZIF3CNQLov080kplDgo+hghPzue0YeMIEuLSX2/n YOEVjU5L+ZP8WUD4gObVbW1pVBrMtbD0Fm4vC0/85gw+YFA0doLJUOg62AY1CYmzomL0 NzjND4HFOW06dWnQIpi2n9JRRGFhL93WnHIxPmXZ0tMst7annwirv9OR19xcfEhc16O0 ApeCdamNJ0xctCmmGARMYvNoy1oZhyqjWoZsED2rP8nDyrX9nTfg6Ih5oo7rL1xO7Ehb UJUA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:sender:in-reply-to:references:from :date:message-id:subject:to:cc:content-transfer-encoding; bh=k/HxUPa8NpTsoaqBE4NZAZRvoBKLornwzKx2Qy4hv2w=; b=G29SYz3Vf1ekuMjkaBXQ40IMJ/1r2nFvVxkJIE6Co4+FBXI34pP3QXWSOVgQtJcRx3 kzT7FxIYI5fg/pUKqiX/nhAvFStKHe4NxLcRVB9SpkZtrvof6mE0YTVx8CyfGMZgoCcp +yf/II1WvUozGrcQI0q8JEbQRjhkxRL+iiwzXlho9Lgo8upFe9tNqeiYZM35uVEcIBUm oqioIrU/6e1PAKeuDMTjJCPKikTMuxPE7+Rjq45lFDi6NBYJc5kGDhv00KcEEq4elss4 GRlYmzUX4y6FPgMxpNrDNFirAkmYB4wqRgAYBdnmbh9Xt0uBIGlH7hHdC0gQGMS9WjNa ShDA== X-Gm-Message-State: AHPjjUhrBlU2mHasqhgnMFbTXMLnX+3GswnO5rdzczRnMWNhTtHlhA5O wcYcCo8xnhD88jjscU6YCHsvprwyg1HpsqHDxCLmvysqt/s= X-Google-Smtp-Source: AOwi7QC9zUbr26cekeJ+Mw7V+bwFH0Eb29o6kbY2tkPo/Okroqj3b4jJjowP8fxIPWSPPemw+opuj0iopQ/UEI82tDE= X-Received: by 10.55.123.1 with SMTP id w1mr8986674qkc.114.1506102169334; Fri, 22 Sep 2017 10:42:49 -0700 (PDT) MIME-Version: 1.0 Sender: php@golemon.com Received: by 10.12.132.3 with HTTP; Fri, 22 Sep 2017 10:42:48 -0700 (PDT) X-Originating-IP: [206.252.215.26] In-Reply-To: References: <4DE419BB-2630-44B8-B4E7-98E17BEBE749@saxonica.com> <29B0DEA4-2022-4656-8A61-C3D89DB8D5D2@saxonica.com> Date: Fri, 22 Sep 2017 13:42:48 -0400 X-Google-Sender-Auth: mf95I2BmXTlAl8zfFBHZW7h4QYY Message-ID: To: "O'Neil Delpratt" Cc: PHP internals Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Subject: Re: [PHP-DEV] PHP extension - Saxon/C From: pollita@php.net (Sara Golemon) >> On Fri, Sep 22, 2017 at 12:21 PM, O'Neil Delpratt w= rote: >> I still have the memory leak without that line. I think I was thinking I= need to add a refcount to the XdmNode object, but maybe I am wrong. >> > The Following gives leak: > > $proc =3D Saxon/SaxonProcessor > > $xquery =3D $proc->NewXQueryProcessor() > > $sourceNode =3D $proc->parseXmlFromString("=E2=80=9D); > > $xquery->setContextItem($sourceNode); // with this line commented out the= re is no leak. > Okay, well the bad news is that assuming the extension you're working with is the link you gave initially and you did remove the Z_ADDREF_P() from XQueryProcessor::setContextItem()... I can't point to why you'd have a memory leak. -Sara