Optional parameter for debug_print_backtrace()
| From: | Andrey Hristov | Date: | Thu, 18 Mar 2004 22:56:24 +0000 |
| Subject: | Optional parameter for debug_print_backtrace() | ||
| Groups: | php.internals | ||
| Request: | Send a blank email to internals+get-8588@lists.php.net to get a copy of this message | ||
Hi internals,
what do you think about adding an optional parameter to debug_print_backtrace() (PHP 5 only) so instead of printing the stacktrace to get it as string. The information provided by debug_print_backtrace() is more than the information provided by debug_backtrace().
So if the parameter is added the function will behave just like print_r() which has second optional parameter.
I have made a patch which is available here : http://hristov.com/andrey/projects/php_stuff/patches/debug_print_backtrace_as_string.diff.txt
Andrey