int64_t f_set_file_buffer(const Resource& stream, int buffer) { return f_stream_set_write_buffer(stream, buffer); }
bool TestExtStream::test_stream_set_write_buffer() { Variant f = f_fopen("test/test_ext_file.tmp", "w"); f_stream_set_write_buffer(f, 1 /* PHP_STREAM_BUFFER_LINE */); f_fputs(f, "testing\nanother line\n"); return Count(true); }
int64_t f_set_file_buffer(CResRef stream, int buffer) { return f_stream_set_write_buffer(stream, buffer); }