Re: Writing bugtest about mem leak

From: Date: Thu, 12 Feb 2009 17:42:44 +0000
Subject: Re: Writing bugtest about mem leak
References: 1  Groups: php.qa 
Request: Send a blank email to php-qa+get-64654@lists.php.net to get a copy of this message
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). Regards, Felix Op 12-feb-09, om 18:18 heeft Olivier Doucet het volgende geschreven:
Hello, I would like to write a php test on case where I encountered a memory leak. I don't know how to write a specific test where code is OK but memory leak happened. I watched another php test (/Zend/tests/bug26077.phpt), but I don't know how the test can see whether there is a memleak or not ... Is there a specific way to test for a memleak ? Thank you Olivier


« previous php.qa (#64654) next »