Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:76707 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 8974 invoked from network); 19 Aug 2014 16:36:51 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 19 Aug 2014 16:36:51 -0000 Authentication-Results: pb1.pair.com smtp.mail=pierre.php@gmail.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=pierre.php@gmail.com; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.216.175 as permitted sender) X-PHP-List-Original-Sender: pierre.php@gmail.com X-Host-Fingerprint: 209.85.216.175 mail-qc0-f175.google.com Received: from [209.85.216.175] ([209.85.216.175:42733] helo=mail-qc0-f175.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 8D/44-16275-12D73F35 for ; Tue, 19 Aug 2014 12:36:50 -0400 Received: by mail-qc0-f175.google.com with SMTP id w7so6474421qcr.6 for ; Tue, 19 Aug 2014 09:36:46 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=jUcCQheD8zhucBxgetEPlRH55hx6gNYnjpaJwUSywug=; b=MS5wzKD63LQTDIXvN/0Qm+UZ81dB6gw8Q2zsqxKIz+oF2I777/4pcqhDDnncCD1Aqp /uRSkRkgeA3W8QYGwoFa5f5H1y1DoudOOxGhT1bNiwEpTC/+ooIy842+pzj7O5ruH4Fv zmZ7putgj61hWFO6ArpXDLeJPGjRxkYNNNa7Zw8d/BvXCm5Y7bJ6NyYZqzfSZROldvRR lpb6uEIzDUfn4+xIrO6tE4kFvNQFl3P2e/D0s9DrSiYVvyJXu4AIhePNV6nh1bZpnnhO mbm8cPIRjAvJ0Xusx5rur+tWTembtNN2muF+B/ztBaCk9BaMijethLDMGBc6T6uHuk4y zR3A== MIME-Version: 1.0 X-Received: by 10.140.30.66 with SMTP id c60mr6377868qgc.30.1408466206589; Tue, 19 Aug 2014 09:36:46 -0700 (PDT) Received: by 10.140.95.146 with HTTP; Tue, 19 Aug 2014 09:36:46 -0700 (PDT) In-Reply-To: References: Date: Tue, 19 Aug 2014 18:36:46 +0200 Message-ID: To: Dmitry Stogov Cc: Nikita Popov , PHP Internals Content-Type: text/plain; charset=UTF-8 Subject: Re: [PHP-DEV] ext/standard/tests/http/bug60570.phpt failure From: pierre.php@gmail.com (Pierre Joye) hi, On Tue, Aug 19, 2014 at 4:10 PM, Dmitry Stogov wrote: > Hi, > > Yesterday we discussed with Nikta the failure of > ext/standard/tests/http/bug60570.phpt. It was in context of AST patch, but > the failure is not related to AST at all. It's just a bad test that makes > wrong assumption. > > Resource leaks can't be caught using get_memory_usage(). > > To have a robust way to detect resource leaks I propose a new function - > get_resources() that returns an array of all registered resources or an > array of registered resources of particular type. See patch: > > https://gist.github.com/dstogov/f96c04f5979e726909ab > > I'm not sure if such small change needs RFC. > > Thoughts? It is mainly a debugging function, self contained, etc... Cheers, -- Pierre @pierrejoye | http://www.libgd.org