36 ssize_t total_read = 0;
65 ssize_t total_written = 0;
80 total_written += written;
99 return (*newoffs < 0) ? -1 : 0;
126 return gzflush(self->
gz_file, Z_SYNC_FLUSH);
130 php_gziop_write, php_gziop_read,
131 php_gziop_close, php_gziop_flush,
153 if (
strncasecmp(
"compress.zlib://", path, 16) == 0) {
166 self->
stream = innerstream;
171 if (zlevel && (Z_OK != gzsetparams(self->
gz_file, zval_get_long(zlevel), Z_DEFAULT_STRATEGY))) {
count(Countable|array $value, int $mode=COUNT_NORMAL)
assert(mixed $assertion, Throwable|string|null $description=null)
strchr(string $haystack, string $needle, bool $before_needle=false)
zend_ffi_ctype_name_buf buf
PHPAPI ZEND_COLD void php_error_docref(const char *docref, int type, const char *format,...)
PHP_JSON_API size_t int options
PHPAPI zval * php_stream_context_get_option(php_stream_context *context, const char *wrappername, const char *optionname)
#define php_stream_cast(stream, as, ret, show_err)
struct _php_stream_wrapper_ops php_stream_wrapper_ops
struct _php_stream php_stream
struct _php_stream_context php_stream_context
#define PHP_STREAM_FLAG_NO_BUFFER
#define php_stream_alloc_rel(ops, thisptr, persistent, mode)
#define php_stream_open_wrapper_ex(path, mode, options, opened, context)
#define php_stream_close(stream)
struct _php_stream_ops php_stream_ops
struct _php_stream_wrapper php_stream_wrapper
const php_stream_ops php_stream_gzio_ops
const php_stream_wrapper php_stream_gzip_wrapper
php_stream * php_stream_gzopen(php_stream_wrapper *wrapper, const char *path, const char *mode, int options, zend_string **opened_path, php_stream_context *context STREAMS_DC)
#define strncasecmp(s1, s2, n)
struct _zend_string zend_string
#define UNEXPECTED(condition)
gzwrite($stream, string $data, ?int $length=null)
gzread($stream, int $length)
gzseek($stream, int $offset, int $whence=SEEK_SET)
php_stream * php_stream_gzopen(php_stream_wrapper *wrapper, const char *path, const char *mode, int options, zend_string **opened_path, php_stream_context *context STREAMS_DC)