Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:76706 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 99258 invoked from network); 19 Aug 2014 14:10:12 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 19 Aug 2014 14:10:12 -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.180 as permitted sender) X-PHP-List-Original-Sender: dmitry@zend.com X-Host-Fingerprint: 209.85.220.180 mail-vc0-f180.google.com Received: from [209.85.220.180] ([209.85.220.180:46177] helo=mail-vc0-f180.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id BF/03-16275-EBA53F35 for ; Tue, 19 Aug 2014 10:10:11 -0400 Received: by mail-vc0-f180.google.com with SMTP id ij19so7451094vcb.39 for ; Tue, 19 Aug 2014 07:10:03 -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:date:message-id:subject:from:to :content-type; bh=Q5jIcQzbZwaV0MKDq9Dhbwl1Q2ziSckBX1aiIyFh0t8=; b=l3NOMu8Cof945r5+CRHdYNnA2/VXOlUV2eRvCQ+n/+5elMJ3ExioNL6wd5Pc6OraTw sxo6IcjwT9ZAl0uU8U/KLPh/KeReAwxtP+IDtKW0D+7U9mB490BGtN65rZjtkjTMOOWZ 79j1t+nqGNRW6+hnpOc4ld8jF/WpTm7xGIg2DTmRGwFOgptbtu+Va26vCA+2W7pR2AkB pFpSuGZPPCG1Vho31EdUAKOn/BNjg8VbE2H096SZSUZO7Bkh6aQORiM7rQciEfQYMqt+ FsiMTOPkkGJl0qchHNJGthgYOgsGWbhZbkbFpsAKu093dLJXR5qqs1iJUxrpnPOBvoRc xuRA== X-Gm-Message-State: ALoCoQnYa8q+Q9RLbfSl4I/9bhdjvZoGaBw0a3Q7lrPgCdxDiCeIxYXkvaSnSFeHJfnWwsukteZ7f+f+Ht7PUIZnVkdSxv0d9kX2yIpyHE8CCJvN13GBlJCVrSWrhshuMkZDTFbsRV/j MIME-Version: 1.0 X-Received: by 10.52.149.209 with SMTP id uc17mr518603vdb.65.1408457402926; Tue, 19 Aug 2014 07:10:02 -0700 (PDT) Received: by 10.52.110.170 with HTTP; Tue, 19 Aug 2014 07:10:02 -0700 (PDT) Date: Tue, 19 Aug 2014 18:10:02 +0400 Message-ID: To: Nikita Popov , PHP Internals Content-Type: multipart/alternative; boundary=bcaec520f1d32edb6d0500fc0bdb Subject: ext/standard/tests/http/bug60570.phpt failure From: dmitry@zend.com (Dmitry Stogov) --bcaec520f1d32edb6d0500fc0bdb Content-Type: text/plain; charset=UTF-8 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? Thanks. Dmitry. --bcaec520f1d32edb6d0500fc0bdb--