facebook/hhvm — pull request #1266 by fredemmott (2013-11-12 07:45:07+00:00)
Title: Rewrite RecursiveIteratorIterator

This is heavily based on php/ext/spl/spl_iterator.c, expecially spl_recursive_it_move_forward_ex

Added a test case that fails on the old implementation

Tested with quick/ and all the good SPL tests:

![screen shot 2013-11-11 at 11 40 03 pm](https://f.cloud.github.com/assets/360927/1519852/06a2aa18-4b6e-11e3-9b9c-edb21141bfa0.png)

New test without modified RecursiveIteratorIterator:

![screen shot 2013-11-11 at 10 01 50 pm](https://f.cloud.github.com/assets/360927/1519855/1b26c12c-4b6e-11e3-915c-a08d291ee1ac.png)

Fixes #1260