very simple non-working implementation of streambufs for hhvm