Memory leak debugging

php.internals

Curt Zirzow

22 years ago
Is there prefered/suggested method on debugging memory leaks? For example: $i = 100; while($i-- ) { list($foo['a']) = array('bar'); } Results with: Zend/zend_execute.c(3383) : Freeing 0x0840E1CC (4 bytes), script=t.php Zend/zend_variables.c(137) : Actual location (location was relayed) Last leak repeated 99 times Zend/zend_execute.c(3380) : Freeing 0x0840E188 (16 bytes), script=t.php Last leak repeated 99 times === Total 200 memory leaks detected === Curt
-- First, let me assure you that this is not one of those shady pyramid schemes you've been hearing about. No, sir. Our model is the trapezoid!