Re: Writing bugtest about mem leak
| From: | Felipe Pena | Date: | Thu, 12 Feb 2009 17:48:45 +0000 |
| Subject: | Re: Writing bugtest about mem leak | ||
| References: | 1 2 | Groups: | php.qa |
| Request: | Send a blank email to php-qa+get-64655@lists.php.net to get a copy of this message | ||
Em Qui, 2009-02-12 às 18:42 +0100, Felix De Vliegher escreveu:
> Hello Olivier
>
> Best thing to do when you encounter such thing is to file a bug report
> on http://bugs.php.net. Try to include the steps needed to
> reproduce
> the problem too. If your bugreport is valid, the devs will pick up the
> bug report soon enough.
>
> Afaik, there's no reliable way to test memory leaks with phpt (other
> tools such as valgrind can detect memory leaks, but that's not usable
> in phpt tests).
>
Hello.
Running run-tests.php -m test.phpt, the valgrind will be used and it'll
generate a .mem file in case of some mem. issue.
Some tests failing using -m:
http://gcov.php.net/viewer.php?version=PHP_5_3&func=valgrind
--
Regards,
Felipe Pena