We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d3b1666 commit ccbe7baCopy full SHA for ccbe7ba
src/simpleRdf/Dataset.php
@@ -384,7 +384,8 @@ private function listQuadElement(iQuadCompare | iQuadIterator | callable | null
384
string $elementFn): Generator {
385
try {
386
$spotted = [];
387
- $idx = $this->findMatchingQuads($filter);
+ // materialize to avoid problems with parallel quads iterations
388
+ $idx = iterator_to_array($this->findMatchingQuads($filter));
389
foreach ($idx as $i) {
390
$i = $this->quads[$i]->$elementFn();
391
$flag = true;
0 commit comments