Question

How to disable object providing with debug_backtrace in PHP 5.2.11? debug_backtrace(false) didn't work.

Thanks in advance,

Simon

No correct solution

OTHER TIPS

It's quite late, but I would like to answer this. Actually this is not my answer, but I was also looking for solution for the same above mentioned problem and I found answer here on official site of PHP : debug_backtrace

Here, robert has gave brief description on using various options in debug_backtrace function.

debug_backtrace() - show all options
debug_backtrace(0) - exlude ["object"]
debug_backtrace(1) - same as debug_backtrace()
debug_backtrace(2) - exlude ["object"] AND ["args"]

I hope, this will help others.

The PHP 5.2.11 source indicates that debug_backtrace accepts a boolean parameter, so passing in false should work.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top