1: <?php
2:
3: namespace Guzzle\Iterator;
4:
5: /**
6: * AppendIterator that is not affected by https://bugs.php.net/bug.php?id=49104
7: */
8: class AppendIterator extends \AppendIterator
9: {
10: /**
11: * Works around the bug in which PHP calls rewind() and next() when appending
12: *
13: * @param \Iterator $iterator Iterator to append
14: */
15: public function append(\Iterator $iterator)
16: {
17: $this->getArrayIterator()->append($iterator);
18: }
19: }
20: