You can now do this:
copy("zlib:src.gz", "bz2:dest.bz2");
As with zlib, most of the functions with counterparts
in file.c are now aliases to those functions.
return ret;
}
+static int php_gziop_flush(php_stream *stream TSRMLS_DC)
+{
+ struct php_gz_stream_data_t *self = (struct php_gz_stream_data_t *)stream->abstract;
+ return gzflush(self->gz_file, Z_SYNC_FLUSH);
+}
+
php_stream_ops php_stream_gzio_ops = {
php_gziop_write, php_gziop_read,
- php_gziop_close, NULL,
+ php_gziop_close, php_gziop_flush,
php_gziop_seek, php_gziop_gets,
NULL, "ZLIB"
};
php_stream_wrapper php_stream_gzip_wrapper = {
php_stream_gzopen,
+ NULL,
NULL
};