Lines Matching refs:idata

162 	phar_entry_data *idata;  in phar_wrapper_open_url()  local
194 …if (NULL == (idata = phar_get_or_create_entry_data(resource->host, host_len, internal_file, strlen… in phar_wrapper_open_url()
208 fpf = php_stream_alloc(&phar_ops, idata, NULL, mode); in phar_wrapper_open_url()
214 if (idata->internal_file->uncompressed_filesize == 0 in phar_wrapper_open_url()
215 && idata->internal_file->compressed_filesize == 0 in phar_wrapper_open_url()
220 idata->internal_file->flags &= ~PHAR_ENT_COMPRESSION_MASK; in phar_wrapper_open_url()
221 idata->internal_file->flags |= Z_LVAL_P(pzoption); in phar_wrapper_open_url()
224 if (Z_TYPE(idata->internal_file->metadata) != IS_UNDEF) { in phar_wrapper_open_url()
225 zval_ptr_dtor(&idata->internal_file->metadata); in phar_wrapper_open_url()
226 ZVAL_UNDEF(&idata->internal_file->metadata); in phar_wrapper_open_url()
231 ZVAL_COPY(&idata->internal_file->metadata, metadata); in phar_wrapper_open_url()
232 idata->phar->is_modified = 1; in phar_wrapper_open_url()
236 …*opened_path = strpprintf(MAXPATHLEN, "phar://%s/%s", idata->phar->fname, idata->internal_file->fi… in phar_wrapper_open_url()
249 … phar_get_entry_data(&idata, resource->host, host_len, ".phar/stub.php", sizeof(".phar/stub.php")-… in phar_wrapper_open_url()
270 idata = (phar_entry_data *) ecalloc(1, sizeof(phar_entry_data)); in phar_wrapper_open_url()
271 idata->fp = phar_get_pharfp(phar); in phar_wrapper_open_url()
272 idata->phar = phar; in phar_wrapper_open_url()
273 idata->internal_file = entry; in phar_wrapper_open_url()
287 …E == phar_get_entry_data(&idata, resource->host, host_len, internal_file, strlen(internal_file), "… in phar_wrapper_open_url()
302 fprintf(stderr, "Pharname: %s\n", idata->phar->filename); in phar_wrapper_open_url()
304 fprintf(stderr, "Entry: %s\n", idata->internal_file->filename); in phar_wrapper_open_url()
305 fprintf(stderr, "Size: %u\n", idata->internal_file->uncompressed_filesize); in phar_wrapper_open_url()
306 fprintf(stderr, "Compressed: %u\n", idata->internal_file->flags); in phar_wrapper_open_url()
307 fprintf(stderr, "Offset: %u\n", idata->internal_file->offset_within_phar); in phar_wrapper_open_url()
308 fprintf(stderr, "Cached: %s\n", idata->internal_file->filedata ? "yes" : "no"); in phar_wrapper_open_url()
312 …if (!idata->internal_file->is_crc_checked && phar_postprocess_file(idata, idata->internal_file->cr… in phar_wrapper_open_url()
315 phar_entry_delref(idata); in phar_wrapper_open_url()
321 char *entry = idata->internal_file->filename, *cwd; in phar_wrapper_open_url()
324 …if ((idata->phar->is_tar || idata->phar->is_zip) && idata->internal_file->filename_len == sizeof("… in phar_wrapper_open_url()
337 …*opened_path = strpprintf(MAXPATHLEN, "phar://%s/%s", idata->phar->fname, idata->internal_file->fi… in phar_wrapper_open_url()
341 fpf = php_stream_alloc(&phar_ops, idata, NULL, mode); in phar_wrapper_open_url()
684 phar_entry_data *idata; in phar_wrapper_unlink() local
719 …if (FAILURE == phar_get_entry_data(&idata, resource->host, host_len, internal_file, internal_file_… in phar_wrapper_unlink()
734 if (idata->internal_file->fp_refcount > 1) { in phar_wrapper_unlink()
739 phar_entry_delref(idata); in phar_wrapper_unlink()
744 phar_entry_remove(idata, &error); in phar_wrapper_unlink()