Re: Optional $limit argument for debug_backtrace()
| From: | Patrick ALLAERT | Date: | Tue, 05 Apr 2011 10:39:04 +0000 |
| Subject: | Re: Optional $limit argument for debug_backtrace() | ||
| References: | 1 2 3 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-51817@lists.php.net to get a copy of this message | ||
2011/4/5 Sebastian Bergmann <sebastian@php.net>:
> On 04/04/2011 07:37 PM, Patrick ALLAERT wrote:
>>
>> I would then add the same option to debug_print_backtrace().
>
> Not sure I want to touch debug_print_backtrace() as it does not use
> zend_fetch_debug_backtrace().
They share nothing in terms of code, but well in terms of function definition:
ZEND_FE(debug_backtrace, arginfo_debug_backtrace)
ZEND_FE(debug_print_backtrace, arginfo_debug_backtrace)
[snip]
ZEND_BEGIN_ARG_INFO_EX(arginfo_debug_backtrace, 0, 0, 0)
ZEND_ARG_INFO(0, options)
ZEND_ARG_INFO(0, limit)
ZEND_END_ARG_INFO()
I think that the feature will be asked soonish if implemented for
debug_backtrace() and not for debug_print_backtrace().
I've implemented it in a gist fork: https://gist.github.com/903309.
Patrick