Re: [PHP-DEV] ext/standard/tests/http/bug60570.phpt failure
[email protected] (Pierre Joye)
| Newsgroups | php.internals |
|---|---|
| Message-ID | <CAEZPtU7i2t1F4S-haL6mUq57CdjO7GWK_UjaUU901QFus96OOw@mail.gmail.com> |
hi, On Tue, Aug 19, 2014 at 4:10 PM, Dmitry Stogov <[email protected]> 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