How to disable object providing in debug_backtrace?
-
29-06-2021 - |
Domanda
How to disable object providing with debug_backtrace in PHP 5.2.11? debug_backtrace(false) didn't work.
Thanks in advance,
Simon
Nessuna soluzione corretta
Altri suggerimenti
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.
Autorizzato sotto: CC-BY-SA insieme a attribuzione
Non affiliato a StackOverflow