[php-src] Issue #7958: `LimitIterator` is not GCable

From: Date: Mon, 17 Jan 2022 13:12:49 +0000
Subject: [php-src] Issue #7958: `LimitIterator` is not GCable
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-239067@lists.php.net to get a copy of this message
Issue: https://github.com/php/php-src/issues/7958 Author: mvorisek ### Description The following code: https://github.com/atk4/data/commit/7cc03783820f8ea4a64aad358221ac57d1e51c1f is leaking memory I belive so because workaround /wo LimitIterator https://github.com/atk4/data/commit/bc36288e36363185dddad9dd1e1b34da639dc5d8 is not leaking Resulted in this output: ``` 1) Atk4\Data\Tests\ModelNestedArrayTest::testInsert Memory leak detected! (37.813 + 37.781 + 37.781 KB, 4 iterations) 2) Atk4\Data\Tests\ModelNestedArrayTest::testUpdate Memory leak detected! (36.695 + 36.664 + 36.664 KB, 4 iterations) 3) Atk4\Data\Tests\ModelNestedArrayTest::testDelete Memory leak detected! (37.000 + 36.969 + 36.969 KB, 4 iterations) ``` But I expected this output instead: no memory leak ### PHP Version 8.0.14 ### Operating System linux

« previous php.bugs (#239067) next »