Fixed test case for 5328d42
Fixed test case for 5328d42
Merge branch 'PHP-5.5' into PHP-5.6

* PHP-5.5:
  Fixed test case for 5328d42
Merge branch 'PHP-5.6'

* PHP-5.6:
  Fixed test case for 5328d42
Merge branch 'pull-request/646'

* pull-request/646:
  Fixed test case for 5328d42
Extend end() and reset() functions with an extra argument, make existing tests pass.
Added test cases for using offsets in end() and reset()
Removed unnecessary fetches while skipping elements