Re: deprecation of set_error_level() callback $errcontext argument

From: Date: Wed, 03 Oct 2018 06:56:52 +0000
Subject: Re: deprecation of set_error_level() callback $errcontext argument
References: 1 2  Groups: php.internals 
Request: Send a blank email to internals+get-103303@lists.php.net to get a copy of this message
On Tue, Oct 2, 2018 at 11:37 PM Rowan Collins <rowan.collins@gmail.com> 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 the language to interact with it. I think, since the language *did* provide this "out of the box", it's sort of odd to deprecate a feature that is being used by a popular product - the Sentry PHP package has 8 million downloads, and PHP developers rely on this in production to help them fix bugs. Seems pretty important? And an extension isn't really an acceptable alternative to someone who was offering a product that "just worked". For example, rather than removing this feature, might it be possible to deeply clone the variables and provide backwards compatibility in that manner? I doubt that anyone is counting on introducing side-effects via an error-handler, but surely it's not uncommon for error-aggregators and loggers to rely on this information being available?

« previous php.internals (#103303) next »