Advertisement
Guest User

Untitled

a guest
Feb 8th, 2011
298
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.64 KB | None | 0 0
  1. This looks like correct behavior, as it's traversal throughout the class.
  2.  
  3. 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.
  4.  
  5. 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).
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement