[php-src] Issue #8098: GC optimization of closure use itself

From: Date: Tue, 15 Feb 2022 03:19:16 +0000
Subject: [php-src] Issue #8098: GC optimization of closure use itself
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-239788@lists.php.net to get a copy of this message
Issue: https://github.com/php/php-src/issues/8098 Author: Yurunsoft ### Description **code:** ```php <?php function test() { $a = static function () use (&$a) { }; } test(); var_dump(gc_collect_cycles()); ``` **output:** ``` int(1) ``` **expected output:** ``` int(0) ```

« previous php.bugs (#239788) next »