Re: Re: Forbid rebinding scope of closures created by ReflectionFunctionAbstract::getClosure()
| From: | Kalle Sommer Nielsen | Date: | Thu, 22 Oct 2015 16:01:03 +0000 |
| Subject: | Re: Re: Forbid rebinding scope of closures created by ReflectionFunctionAbstract::getClosure() | ||
| References: | 1 2 3 4 5 6 7 8 9 10 11 12 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-88921@lists.php.net to get a copy of this message | ||
2015-10-22 17:48 GMT+02:00 Julien Pauli <jpauli@php.net>:
> This is very tricky use case IMO.
>
> We should absolutely focus on stability, and if we can't find a way to
> make things safe, we forbid them
> for the stability sake. If there are no way to have stable things,
> well, that's pitty but it's like that.
>
> We can't allow PHP to release with a known crashing behavior.
I can only second this, we had a similar issue with closures and $this
in 5.3 which wasn't properly resolved until a later version, I think
it was 5.4. We're at RC5 now and stability is an absolute must for us
to have a proper release of our next major.
Rather leave behaviour we don't have a proper solution for disabled
for now until we can come in with a proper patch to avoid additional
hacks in the code that will become even trickier to handle once the
issue is resolved.
--
regards,
Kalle Sommer Nielsen
kalle@php.net