Re: [PHP-DEV] Re: Forbid binding methods to incompatible $this

2016-04-08 Thread Yasuo Ohgaki
Hi Nikita, On Fri, Apr 8, 2016 at 7:42 AM, Nikita Popov wrote: > As the discussion was positive, this is now merged as > https://github.com/php/php-src/commit/75af8150f58fb55637ac12b33d469b27adef9d76 Could you write UPGRADING for this? Regards, -- Yasuo Ohgaki yohg...@ohgaki.net -- PHP Inter

[PHP-DEV] Re: Forbid binding methods to incompatible $this

2016-04-07 Thread Nikita Popov
On Wed, Mar 30, 2016 at 7:21 AM, Nikita Popov wrote: > Hi internals! > > Currently, inside instance methods the following invariant holds: > > assert(is_null($this) || is_object($this)) > > This is a problem. I'd like to guarantee the following invariant instead: > > assert(is_null($this)