php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Request #40827 additional param for debug_backtrace
Submitted: 2007-03-15 18:58 UTC Modified: 2007-03-23 01:00 UTC
Votes:1
Avg. Score:5.0 ± 0.0
Reproduced:1 of 1 (100.0%)
Same Version:0 (0.0%)
Same OS:0 (0.0%)
From: kills at online dot de Assigned:
Status: No Feedback Package: Feature/Change Request
PHP Version: 5.2.1 OS: Irrelevant
Private report: No CVE-ID: None
Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know!
Just going to say 'Me too!'? Don't clutter the database with that please !
Your email address:
MUST BE VALID
Solve the problem:
34 + 36 = ?
Subscribe to this entry?

 
 [2007-03-15 18:58 UTC] 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.


Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2007-03-15 19:14 UTC] tony2001@php.net
How is that different from a three-line function operating on the result array of debug_backtrace() ?
 [2007-03-23 01:00 UTC] php-bugs at lists dot php dot net
No feedback was provided for this bug for over a week, so it is
being suspended automatically. If you are able to provide the
information that was originally requested, please do so and change
the status of the bug back to "Open".
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu Oct 31 23:01:28 2024 UTC