Re: [PHP-DEV] [RFC] debug_backtrace_depth(int $limit=0): int

2021-03-28 Thread Nikita Popov
On Sat, Mar 13, 2021 at 6:30 PM tyson andre wrote: > Hi internals, > > I've created a new RFC https://wiki.php.net/rfc/debug_backtrace_depth to > return the depth of the current stack trace. > > Inspecting the current stack trace depth is occasionally useful for > 1. Manually debugging with tempo

[PHP-DEV] [RFC] debug_backtrace_depth(int $limit=0): int

2021-03-13 Thread tyson andre
Hi internals, I've created a new RFC https://wiki.php.net/rfc/debug_backtrace_depth to return the depth of the current stack trace. Inspecting the current stack trace depth is occasionally useful for 1. Manually debugging with temporary debug statements 2. Checking for potential infinite recursi