IDE v188.8.131.52 Runtime v184.108.40.206, macOS Catalina 10.15.5.
The debug_get_callstack() function returns an array in which the last element of the array is always the value "0". See screenshot below for an example.
I'm assuming this is a bug. The documentation for debug_get_callstack says that the output is different depending on the platform and that the contents of the array "mostly" contains the script name, colon and line number. Maybe this 0 value array element falls outside of "mostly"? :)
Please sign in to leave a comment.