# Memory leak debugging

- Thread: https://externals.io/message/11606
- Original archive: https://news-web.php.net/php.internals/11606
- Started by Curt Zirzow on 2004-07-29T04:35:10+00:00
- Messages: 1
- Reply by email to internals@lists.php.net
- More for agents: search with https://externals.io/search.md?q={query} · JSON API at https://externals.io/api · documentation at https://externals.io/llms.txt

---

## #11606 — Curt Zirzow — 2004-07-29T04:35:10+00:00

URL: https://externals.io/message/11606#11606

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!
