Req #43792 [Opn->Csd]: Add a depth parameter to debug_backtrace.
Edit report at https://bugs.php.net/bug.php?id=43792&edit=1
ID: 43792
Updated by: nikic@php.net
Reported by: darrel dot opry at gmail dot com
Summary: Add a depth parameter to debug_backtrace.
-Status: Open
+Status: Closed
Type: Feature/Change Request
-Package: Feature/Change Request
+Package: *General Issues
Operating System: ALL
PHP Version: 5.2.5
-Assigned To:
+Assigned To: nikic
Block user comment: N
Private report: N
New Comment:
This will be available in PHP 5.4. See docs at http://de3.php.net/manual/en/function.debug-backtrace.php
:)
Previous Comments:
------------------------------------------------------------------------
[2008-01-09 03:31:58] darrel dot opry at gmail dot com
Description:
------------
It would be nice to be able to specify the depth of a debug_backtrace. So I can call
debug_backtrace(1) and get only the current functions caller function in the backtrace.
It would be even cooler(for me at least) to have depth and start params. Then I could call
debug_backtrace(3,5) and get the 5th, 6th, and 7th function up the call stack.
------------------------------------------------------------------------
--
Edit this bug report at https://bugs.php.net/bug.php?id=43792&edit=1
Thread (2 messages)