Re: Forbid binding methods to incompatible $this
| From: | Nikita Popov | Date: | Wed, 30 Mar 2016 11:02:11 +0000 |
| Subject: | Re: Forbid binding methods to incompatible $this | ||
| References: | 1 2 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-92021@lists.php.net to get a copy of this message | ||
On Wed, Mar 30, 2016 at 11:34 AM, Dmitry Stogov <dmitry@zend.com> wrote:
> I agree, this ability is a dirty and annoying hack, but I'm sure, some
> people use it.
>
> Tony, you don't use this in the new runkit replacement? :)
>
> Thanks. Dmitry.
>
Is this referring to https://github.com/badoo/soft-mocks? If so,
searching
the codebase for getClosure gives no results, so it shouldn't be affected.
I know that the Go! AOP framework used to do some odd things with closure
binding on methods. However their use case was *already* completely broken
by the limitations we added in 7.0 and the feature was removed.
Nikita