Re: [PHP-DEV] deprecation of set_error_level() callback $errcontext argument

2018-10-03 Thread Pieter Hordijk
> On Tue, Oct 2, 2018 at 11:37 PM Rowan Collins wrote: > >> While I can understand the desire to have debugging feature built into >> the language "out of the box", it may be best left to extensions which >> can capture the information to a log or wherever without providing the >> full

Re: [PHP-DEV] deprecation of set_error_level() callback $errcontext argument

2018-10-03 Thread Rasmus Schultz
On Tue, Oct 2, 2018 at 11:37 PM Rowan Collins wrote: > While I can understand the desire to have debugging feature built into > the language "out of the box", it may be best left to extensions which > can capture the information to a log or wherever without providing the > full flexibility of

Re: [PHP-DEV] deprecation of set_error_level() callback $errcontext argument

2018-10-02 Thread Rowan Collins
On 02/10/2018 15:57, Rasmus Schultz wrote: I understand the $errcontext argument to the set_error_level() callback was deprecated in 7.2. Apparently, this was deemed "not useful", but what's the alternative? Digging into the archives, and the RFC [1], there was a bit more to it than "not

[PHP-DEV] deprecation of set_error_level() callback $errcontext argument

2018-10-02 Thread Rasmus Schultz
I understand the $errcontext argument to the set_error_level() callback was deprecated in 7.2. Apparently, this was deemed "not useful", but what's the alternative? I understand that debug_backtrace() reports the arguments on the call-stack, but... just the arguments - no local vars. I