Hey Julien,

> On 22 Apr 2015, at 13:18, Julien Pauli <jpa...@php.net> wrote:
> 
> Perhaps the best thing to do is to forbid rebinding a Closure to an internal 
> class ?
> 
> I'm sure we could find segfaulting behaviors using such a trick on most of 
> our internals classes, aka mysqli, simplexmlelement, PDO or SPL classes.
> 
> Thoughts ?

Sounds good to me! There’s already a precedent for having internal classes 
special with respect to Closure binding, as you can’t bind a method of an 
internal class to an object not of that class.

Thanks.
--
Andrea Faulds
http://ajf.me/





--
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to