Lines Matching refs:idata

428 int phar_entry_delref(phar_entry_data *idata) /* {{{ */  in phar_entry_delref()  argument
432 if (idata->internal_file && !idata->internal_file->is_persistent) { in phar_entry_delref()
433 if (--idata->internal_file->fp_refcount < 0) { in phar_entry_delref()
434 idata->internal_file->fp_refcount = 0; in phar_entry_delref()
437 …if (idata->fp && idata->fp != idata->phar->fp && idata->fp != idata->phar->ufp && idata->fp != ida… in phar_entry_delref()
438 php_stream_close(idata->fp); in phar_entry_delref()
441 if (idata->internal_file->is_temp_dir) { in phar_entry_delref()
442 destroy_phar_manifest_entry_int(idata->internal_file); in phar_entry_delref()
443 efree(idata->internal_file); in phar_entry_delref()
447 phar_archive_delref(idata->phar); in phar_entry_delref()
448 efree(idata); in phar_entry_delref()
456 void phar_entry_remove(phar_entry_data *idata, char **error) /* {{{ */ in phar_entry_remove() argument
460 phar = idata->phar; in phar_entry_remove()
462 if (idata->internal_file->fp_refcount < 2) { in phar_entry_remove()
463 …if (idata->fp && idata->fp != idata->phar->fp && idata->fp != idata->phar->ufp && idata->fp != ida… in phar_entry_remove()
464 php_stream_close(idata->fp); in phar_entry_remove()
466 …zend_hash_str_del(&idata->phar->manifest, idata->internal_file->filename, idata->internal_file->fi… in phar_entry_remove()
467 idata->phar->refcount--; in phar_entry_remove()
468 efree(idata); in phar_entry_remove()
470 idata->internal_file->is_deleted = 1; in phar_entry_remove()
471 phar_entry_delref(idata); in phar_entry_remove()
2344 int phar_postprocess_file(phar_entry_data *idata, uint32_t crc32, char **error, int process_zip) /*… in phar_postprocess_file() argument
2347 int len = idata->internal_file->uncompressed_filesize; in phar_postprocess_file()
2348 php_stream *fp = idata->fp; in phar_postprocess_file()
2349 phar_entry_info *entry = idata->internal_file; in phar_postprocess_file()
2360 if (SUCCESS != phar_open_archive_fp(idata->phar)) { in phar_postprocess_file()
2361 …p-based phar archive \"%s\" to verify local file header for file \"%s\"", idata->phar->fname, entr… in phar_postprocess_file()
2364 php_stream_seek(phar_get_entrypfp(idata->internal_file), entry->header_offset, SEEK_SET); in phar_postprocess_file()
2366 …if (sizeof(local) != php_stream_read(phar_get_entrypfp(idata->internal_file), (char *) &local, siz… in phar_postprocess_file()
2368 …f zip-based phar \"%s\" (cannot read local file header for file \"%s\")", idata->phar->fname, entr… in phar_postprocess_file()
2374 php_stream_seek(phar_get_entrypfp(idata->internal_file), in phar_postprocess_file()
2379 if (sizeof(desc) != php_stream_read(phar_get_entrypfp(idata->internal_file), in phar_postprocess_file()
2381 …p-based phar \"%s\" (cannot read local data descriptor for file \"%s\")", idata->phar->fname, entr… in phar_postprocess_file()
2393 …r \"%s\" (local header of file \"%s\" does not match central directory)", idata->phar->fname, entr… in phar_postprocess_file()
2401 if (idata->zero && idata->zero != entry->offset_abs) { in phar_postprocess_file()
2402 idata->zero = entry->offset_abs; in phar_postprocess_file()
2410 php_stream_seek(fp, idata->zero, SEEK_SET); in phar_postprocess_file()
2416 php_stream_seek(fp, idata->zero, SEEK_SET); in phar_postprocess_file()
2422 …ror: internal corruption of phar \"%s\" (crc32 mismatch on file \"%s\")", idata->phar->fname, entr… in phar_postprocess_file()