[php-src] Issue #7958: `LimitIterator` is not GCable
| From: | mvorisek | Date: | Mon, 17 Jan 2022 13:40:52 +0000 |
| Subject: | [php-src] Issue #7958: `LimitIterator` is not GCable | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-239071@lists.php.net to get a copy of this message | ||
Issue: https://github.com/php/php-src/issues/7958
Comment Author: mvorisek
here is a repro script: https://3v4l.org/3nIOH
LimitIterator clearly prevent the object to be GCed
expected output:
```diff
-- c 1
Array
(
[0] => a
[1] => b
)
-- d 1
-- c 1
Array
(
[0] => a
[1] => b
)
-- d 1
-- c 1
Array
(
[0] => a
)
+ -- d 1
----------------
- -- d 1
```