News Archive
PhpRiot Newsletter
Your Email Address:

More information

Matthew Turland's Blog: A Few Kinks in FilterIterator

Note: This article was originally published at PHPDeveloper on 17 August 2010.

In this quick post to his blog Matthew Turland shares a "kink" he found in using the FilterIteractor SPL iterator when working with the Phergie project's code.

Once I discovered the segfault [from the FilterIterator code], I had to come up with a short code sample exposing the bug in order to report it.

He talks about the bug that led him to the segfault and a second bug that was a side effect of the first causing the first element to be skipped during iteration.