Lines Matching refs:self

35 	struct php_gz_stream_data_t *self = (struct php_gz_stream_data_t *) stream->abstract;  in php_gziop_read()  local
39 read = gzread(self->gz_file, buf, count); in php_gziop_read()
41 if (gzeof(self->gz_file)) { in php_gziop_read()
50 struct php_gz_stream_data_t *self = (struct php_gz_stream_data_t *) stream->abstract; in php_gziop_write() local
53 return gzwrite(self->gz_file, (char *) buf, count); in php_gziop_write()
58 struct php_gz_stream_data_t *self = (struct php_gz_stream_data_t *) stream->abstract; in php_gziop_seek() local
60 assert(self != NULL); in php_gziop_seek()
66 *newoffs = gzseek(self->gz_file, offset, whence); in php_gziop_seek()
73 struct php_gz_stream_data_t *self = (struct php_gz_stream_data_t *) stream->abstract; in php_gziop_close() local
77 if (self->gz_file) { in php_gziop_close()
78 ret = gzclose(self->gz_file); in php_gziop_close()
79 self->gz_file = NULL; in php_gziop_close()
81 if (self->stream) { in php_gziop_close()
82 php_stream_close(self->stream); in php_gziop_close()
83 self->stream = NULL; in php_gziop_close()
86 efree(self); in php_gziop_close()
93 struct php_gz_stream_data_t *self = (struct php_gz_stream_data_t *) stream->abstract; in php_gziop_flush() local
95 return gzflush(self->gz_file, Z_SYNC_FLUSH); in php_gziop_flush()
111 struct php_gz_stream_data_t *self; in php_stream_gzopen() local
134 self = emalloc(sizeof(*self)); in php_stream_gzopen()
135 self->stream = innerstream; in php_stream_gzopen()
136 self->gz_file = gzdopen(dup(fd), mode); in php_stream_gzopen()
138 if (self->gz_file) { in php_stream_gzopen()
140 if (zlevel && (Z_OK != gzsetparams(self->gz_file, zval_get_long(zlevel), Z_DEFAULT_STRATEGY))) { in php_stream_gzopen()
144 stream = php_stream_alloc_rel(&php_stream_gzio_ops, self, 0, mode); in php_stream_gzopen()
150 gzclose(self->gz_file); in php_stream_gzopen()
153 efree(self); in php_stream_gzopen()