Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:76715 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 57584 invoked from network); 20 Aug 2014 05:24:23 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 20 Aug 2014 05:24:23 -0000 Authentication-Results: pb1.pair.com header.from=dmitry@zend.com; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=dmitry@zend.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain zend.com designates 209.85.220.181 as permitted sender) X-PHP-List-Original-Sender: dmitry@zend.com X-Host-Fingerprint: 209.85.220.181 mail-vc0-f181.google.com Received: from [209.85.220.181] ([209.85.220.181:48683] helo=mail-vc0-f181.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id E0/90-52018-40134F35 for ; Wed, 20 Aug 2014 01:24:21 -0400 Received: by mail-vc0-f181.google.com with SMTP id lf12so8452550vcb.26 for ; Tue, 19 Aug 2014 22:24:18 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:date :message-id:subject:from:to:cc:content-type; bh=gLDb0WJ0xxV185e/OOftGgKRiqJfcovP43sikdjkDas=; b=gp0sCrkdH+jrQ1F5cscsLNKtIg/5nvUbZM/iNPx+0O6Cj7upinJ/AotXK1hIEAEizv 4i3/OxSljdp/ovzUYrVHZlwggdw296WlT7VAA4NDvxMeoU9ThEuhgqPbc0nA92IcLBDb DC9/+zUSWNp4NxBcdJGkp1tyObzr9XWgJR7s9NU54nAJnY2+teJlaCT26oxg/RIda17w Q34+ECiUnnc4dG9pfzh+EINkiHttZhHCjyRfDgmuCbltSPxkKVubtt6J+k9iiW50vo8V egrwImzaN3Ik3276767JgUjn8GVqS5mKMC8MoZXHRCt/nE9hej3teuaRGfhok3JzVEZQ siAw== X-Gm-Message-State: ALoCoQkjLNGbYCBpCA08jxQTAujiW9UzNJIx0VYYHmtvpwq7xw+Md21s+2hXUxa7ECZevUDJSBZwa0j6SAOs7dMpiV/mvPn5OVj96gpAEkUp3EqGrCHoADvgkdqLihIl3LpbQIa4jRLe MIME-Version: 1.0 X-Received: by 10.220.116.196 with SMTP id n4mr34408140vcq.6.1408512257948; Tue, 19 Aug 2014 22:24:17 -0700 (PDT) Received: by 10.52.110.170 with HTTP; Tue, 19 Aug 2014 22:24:17 -0700 (PDT) In-Reply-To: References: Date: Wed, 20 Aug 2014 09:24:17 +0400 Message-ID: To: Laruence Cc: Nikita Popov , PHP Internals Content-Type: multipart/alternative; boundary=047d7b34354ccc18bc050108d0ef Subject: Re: [PHP-DEV] ext/standard/tests/http/bug60570.phpt failure From: dmitry@zend.com (Dmitry Stogov) --047d7b34354ccc18bc050108d0ef Content-Type: text/plain; charset=UTF-8 Anyone objects about it or thinks it needs RFC? Thanks. Dmitry. On Wed, Aug 20, 2014 at 6:48 AM, Laruence wrote: > 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/ > --047d7b34354ccc18bc050108d0ef--