Re: Strict types indicator in backtraces

From: Date: Sun, 13 Nov 2016 11:25:17 +0000
Subject: Re: Strict types indicator in backtraces
References: 1  Groups: php.internals 
Request: Send a blank email to internals+get-96873@lists.php.net to get a copy of this message
On Wed, Oct 26, 2016 at 8:00 PM, Leigh <leight@gmail.com> wrote: > Hi all, > > I've written a small patch to add a "strict_types" key to the backtrace > information for functions. > > https://github.com/php/php-src/pull/2177 > > The idea here is to be able to see more easily whether a parameter may have > had it's type changed or not during a trace. > > Thoughts and opinions? > I'm not sure I understand what the intended use case here is. Can you maybe show an example of where this would be useful / how it would be used? Note that the parameter type may change even with strict_types (int->float). Further note that parameter values may change in the body of the function, so you don't have a guarantee that it's the original value in any case. Thanks, Nikita

« previous php.internals (#96873) next »