Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:76712 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 43927 invoked from network); 20 Aug 2014 02:49:17 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 20 Aug 2014 02:49:17 -0000 Authentication-Results: pb1.pair.com smtp.mail=laruence@gmail.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=laruence@gmail.com; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.217.179 as permitted sender) X-PHP-List-Original-Sender: laruence@gmail.com X-Host-Fingerprint: 209.85.217.179 mail-lb0-f179.google.com Received: from [209.85.217.179] ([209.85.217.179:64400] helo=mail-lb0-f179.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 98/B0-36905-AAC04F35 for ; Tue, 19 Aug 2014 22:49:14 -0400 Received: by mail-lb0-f179.google.com with SMTP id v6so6073204lbi.24 for ; Tue, 19 Aug 2014 19:49:11 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:in-reply-to:references:from:date:message-id :subject:to:cc:content-type; bh=WKXUTFPCdy88rkk/wAAKE/UCGYOzfTyNchLl4z8BW/w=; b=skb5tK/+yvfLZKZhY85gH4U6mtjLqjz52xrnHvZwfPh1kg7nytZsbms0e1GA1gMtXB VhNffqcl233Ak+Tn+qViDG1WaxuqXhpYOp3gXk898lurS/c5F8oGb4N96VnlTYOapH/d MkaHz9mNpDXLc2h7y+AxofNITdvnwUPWakyaAERlIKiQLWqLSN65hpIGJ3eEEqihXH1q Pjblnyta6+VZH/zJdwLZkSMJEaSLYjgP/z4n04H05EvFYBMNrplmT8CgpBb6j/WokrYY xxu/BQIh/8j6eW8fIyMMa/7rxc7ogNGHudmW/KMBP7TfDU9Y+g1d5vKxRvQ2B1NvbjnT XvSQ== X-Received: by 10.112.52.130 with SMTP id t2mr22753518lbo.61.1408502951579; Tue, 19 Aug 2014 19:49:11 -0700 (PDT) MIME-Version: 1.0 Sender: laruence@gmail.com Received: by 10.114.187.72 with HTTP; Tue, 19 Aug 2014 19:48:51 -0700 (PDT) In-Reply-To: References: Date: Wed, 20 Aug 2014 10:48:51 +0800 X-Google-Sender-Auth: FPM-I16PmJLjfEX_zLKGZad9ZGw 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: laruence@php.net (Laruence) Hey: On Tue, Aug 19, 2014 at 10: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? I think it's okey to have a such function. we have get_defined_functions/constants/vars thanks > > Thanks. Dmitry. -- Laruence Xinchen Hui http://www.laruence.com/