I'm separately changing `success` to `invoked` in another diff, but still one issue here:

This breaks hphp/test/zend/good/ext/spl/tests/SplFileObject_fflush_basic_001.php, so Zend relies on this behavior.