- This looks like correct behavior, as it's traversal throughout the class.
- In any case, either LimitIterator::rewind should note that if the LimitIterator offset is outside the range of the underlying Iterator range, it throws such an exception, or it should be noted globally in the page of the class.
- In case of the first option, other methods that exhibit this behavior, such as ::seek, should be updated too (::seek says it "throws an OutOfBoundsException if the position is outside of the limits specified in LimitIterator::__construct()", but actually it throws such an exception also if the position is out of the bounds of the inner iterator).
a guest Feb 8th, 2011 141 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
RAW Paste Data