daily pastebin goal
28%
SHARE
TWEET

Untitled

a guest Feb 8th, 2011 141 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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).
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top