[NFR] Use native PHP buffering functions instead of userspace ones

Because:
* they are faster;
* userspace output buffering functions will end up calling them anyway.