# RFE 34986: Adding an object field to debug_backtrace()

- Thread: https://externals.io/message/19724
- Original archive: https://news-web.php.net/php.internals/19724
- Started by Sebastian Bergmann on 2005-10-26T09:14:13+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

---

## #19724 — Sebastian Bergmann — 2005-10-26T09:14:13+00:00

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

For some Meta Programming tool for PHP that I am working on it would be
 nice to have an additional object field in the array returned by
 `debug_backtrace()` that contains a reference to the respective object on
 the callstack.

 After some looking into the zend_fetch_debug_backtrace() function I
 wrote a patch that I attached to my RFE [1]. It would be great if
 someone with a more intimate knowledge of the Zend Engine's internals
 could look at my patch and give me some feedback. (Even greater would be
 the acception of this patch :-)

 Thanks,
Sebastian

 --
 [1] http://bugs.php.net/bug.php?id=34986

-- 
Sebastian Bergmann                      http://www.sebastian-bergmann.de/
GnuPG Key: 0xB85B5D69 / 27A7 2B14 09E4 98CD 6277 0E5B 6867 C514 B85B 5D69
