On Wed, 22 Jan 2014, Yasuo Ohgaki wrote:
> Hi all,
>
> Sorry for off topic.
>
> On Wed, Jan 22, 2014 at 6:37 AM, Lars Strojny <[email protected]> wrote:
>
> > Love it, two things: the var_dump() properties will be replaced (not
> > merged) with the "real" properties in the object (I am asking as that would
> > make it very very cool for stuff like doctrine, where lazy loaded entities
> > are way too large to dump)? As for the name, I would prefer __debugInfo()
> > as in __callStatic(). I know there is __set_state() but that's something
> > that needs deprecation and fixing :)
>
>
> Could anyone add __setState() for 5.6?
Why would you want to do that? If at all, all the *newer* methods should
be __debug_info etc. __set_state was first and changing it to
__setState() would mean that var_export'ed() variables in < PHP 5.6
would now no longer work? Or the other way around? It's a cosmetic
change that helps nobody—just like renaming other standard functions to
make them more "organised".
cheers,
Derick
--
http://derickrethans.nl | http://xdebug.org
Like Xdebug? Consider a donation: http://xdebug.org/donate.php
twitter: @derickr and @xdebug
Posted with an email client that doesn't mangle email: alpine