Lines Matching refs:self

40 	struct php_zip_stream_data_t *self = (struct php_zip_stream_data_t *) stream->abstract;
49 if (self->zf) { in php_zip_ops_read()
50 n = zip_fread(self->zf, buf, count); in php_zip_ops_read()
54 zip_file_error_get(self->zf, &ze, &se); in php_zip_ops_read()
56 php_error_docref(NULL, E_WARNING, "Zip stream error: %s", zip_file_strerror(self->zf)); in php_zip_ops_read()
59 err = zip_file_get_error(self->zf); in php_zip_ops_read()
71 self->cursor += n; in php_zip_ops_read()
94 if (self->zf) { in php_zip_ops_close()
95 zip_fclose(self->zf); in php_zip_ops_close()
96 self->zf = NULL; in php_zip_ops_close()
99 if (self->za) { in php_zip_ops_close()
100 zip_close(self->za); in php_zip_ops_close()
101 self->za = NULL; in php_zip_ops_close()
104 efree(self); in php_zip_ops_close()
205 if (self->zf) { in php_zip_ops_seek()
206 ret = zip_fseek(self->zf, offset, whence); in php_zip_ops_seek()
207 *newoffset = zip_ftell(self->zf); in php_zip_ops_seek()
243 struct php_zip_stream_data_t *self; in php_stream_zip_open() local
252 self = emalloc(sizeof(*self)); in php_stream_zip_open()
254 self->za = NULL; /* to keep it open on stream close */ in php_stream_zip_open()
255 self->zf = zf; in php_stream_zip_open()
256 self->stream = NULL; in php_stream_zip_open()
257 self->cursor = 0; in php_stream_zip_open()
260 stream = php_stream_alloc(&php_stream_zipio_seek_ops, self, NULL, mode); in php_stream_zip_open()
264 stream = php_stream_alloc(&php_stream_zipio_ops, self, NULL, mode); in php_stream_zip_open()
294 struct php_zip_stream_data_t *self; in php_stream_zip_opener() local
338 self = emalloc(sizeof(*self)); in php_stream_zip_opener()
340 self->za = za; in php_stream_zip_opener()
341 self->zf = zf; in php_stream_zip_opener()
342 self->stream = NULL; in php_stream_zip_opener()
343 self->cursor = 0; in php_stream_zip_opener()
346 stream = php_stream_alloc(&php_stream_zipio_seek_ops, self, NULL, mode); in php_stream_zip_opener()
350 stream = php_stream_alloc(&php_stream_zipio_ops, self, NULL, mode); in php_stream_zip_opener()