[php-src] PR #11118: Closure self-reference
| From: | KapitanOczywisty | Date: | Sat, 22 Apr 2023 15:30:04 +0000 |
| Subject: | [php-src] PR #11118: Closure self-reference | ||
| Groups: | php.git-pulls | ||
| Request: | Send a blank email to git-pulls+get-22368@lists.php.net to get a copy of this message | ||
Pull Request: https://github.com/php/php-src/pull/11118
Author: KapitanOczywisty
Implementation of https://wiki.php.net/rfc/closure_self_reference
Todo:
- [ ] Plug leak
- [ ] Fix segfault when calling
$fn->call($class, 3);
- [ ] Check if ZEND_BIND_SELF_REFERENCE is needed somewhere in opcache
- [ ] More testing
Notes:
- _zend_ast_decl->childs had to be extended to fit this feature - maybe should be
merged with static binding AST?