]> granicus.if.org Git - php/commit
Relax closure $this unbinding deprecation
authorNikita Popov <nikita.ppv@gmail.com>
Fri, 16 Aug 2019 10:55:28 +0000 (12:55 +0200)
committerNikita Popov <nikita.ppv@gmail.com>
Fri, 23 Aug 2019 15:21:23 +0000 (17:21 +0200)
commitd1157cbce1f324362d1fe05aff3fb53ef248ad74
treeffff618d2883ff86ce12da7bb04ffa5c0582ede5
parent8807889ac280503d5cd1cd05804a6f278a40300e
Relax closure $this unbinding deprecation

Only deprecate unbinding of $this from a closure if $this is
syntactically used within the closure.

This is desired to support Laravel's macro system, see laravel/framework#29482.

This should still allow us to implement the performance improvements
we're interested in for PHP 8, without breaking existing use-cases.
UPGRADING
Zend/tests/closure_062.phpt [new file with mode: 0644]
Zend/zend_closures.c
Zend/zend_compile.c
Zend/zend_compile.h