On 17 April 2015 at 18:43, Ferenc Kovacs <tyr...@gmail.com> wrote: > For the record this isn't exclusive to Closure::call, afaik the same thing > is possible with Closure::bind() since 5.4 > http://3v4l.org/hlFS4 > And there are/were a decent amount of discussion (and AFAIR even hydrate > libraries using this trick) about this, for example: > > http://ocramius.github.io/blog/accessing-private-php-class-members-without-reflection/ >
Also note that this is the only way to access private properties by-ref (yes, I do need that for my horrible use-cases. No, don't ask about it.) Marco Pivetta http://twitter.com/Ocramius http://ocramius.github.com/