#40827 [Opn->Fbk]: additional param for debug_backtrace
| From: | tony2001@php.net | Date: | Thu, 15 Mar 2007 19:14:00 +0000 |
| Subject: | #40827 [Opn->Fbk]: additional param for debug_backtrace | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-110405@lists.php.net to get a copy of this message | ||
ID: 40827
Updated by: tony2001@php.net
Reported By: kills at online dot de
-Status: Open
+Status: Feedback
Bug Type: Feature/Change Request
Operating System: Irrelevant
PHP Version: 5.2.1
New Comment:
How is that different from a three-line function operating on the
result array of debug_backtrace() ?
Previous Comments:
------------------------------------------------------------------------
[2007-03-15 18:58:18] kills at online dot de
Description:
------------
http://de3.php.net/debug_backtrace
its very common to use debug_backtrace for getting the caller of the
current function/method. the only information which is needed is the
next upper level of the trace.
In my opinion it would be perfect to have an parameter which
determines, how many levels of the backtrace are necessary for me.
e.g. debug_backtrace(1) for only the next upper level of information,
this would also improve speed and efficiency of the function.
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=40827&edit=1