Lines Matching refs:idata

431 int phar_entry_delref(phar_entry_data *idata TSRMLS_DC) /* {{{ */  in phar_entry_delref()
435 if (idata->internal_file && !idata->internal_file->is_persistent) { in phar_entry_delref()
436 if (--idata->internal_file->fp_refcount < 0) { in phar_entry_delref()
437 idata->internal_file->fp_refcount = 0; in phar_entry_delref()
440 …if (idata->fp && idata->fp != idata->phar->fp && idata->fp != idata->phar->ufp && idata->fp != ida… in phar_entry_delref()
441 php_stream_close(idata->fp); in phar_entry_delref()
444 if (idata->internal_file->is_temp_dir) { in phar_entry_delref()
445 destroy_phar_manifest_entry((void *)idata->internal_file); in phar_entry_delref()
446 efree(idata->internal_file); in phar_entry_delref()
450 phar_archive_delref(idata->phar TSRMLS_CC); in phar_entry_delref()
451 efree(idata); in phar_entry_delref()
459 void phar_entry_remove(phar_entry_data *idata, char **error TSRMLS_DC) /* {{{ */ in phar_entry_remove() argument
463 phar = idata->phar; in phar_entry_remove()
465 if (idata->internal_file->fp_refcount < 2) { in phar_entry_remove()
466 …if (idata->fp && idata->fp != idata->phar->fp && idata->fp != idata->phar->ufp && idata->fp != ida… in phar_entry_remove()
467 php_stream_close(idata->fp); in phar_entry_remove()
469 …zend_hash_del(&idata->phar->manifest, idata->internal_file->filename, idata->internal_file->filena… in phar_entry_remove()
470 idata->phar->refcount--; in phar_entry_remove()
471 efree(idata); in phar_entry_remove()
473 idata->internal_file->is_deleted = 1; in phar_entry_remove()
474 phar_entry_delref(idata TSRMLS_CC); in phar_entry_remove()
2408 int phar_postprocess_file(phar_entry_data *idata, php_uint32 crc32, char **error, int process_zip T… argument
2411 int len = idata->internal_file->uncompressed_filesize;
2412 php_stream *fp = idata->fp;
2413 phar_entry_info *entry = idata->internal_file;
2424 if (SUCCESS != phar_open_archive_fp(idata->phar TSRMLS_CC)) {
2425 …p-based phar archive \"%s\" to verify local file header for file \"%s\"", idata->phar->fname, entr…
2428 …php_stream_seek(phar_get_entrypfp(idata->internal_file TSRMLS_CC), entry->header_offset, SEEK_SET);
2430 …if (sizeof(local) != php_stream_read(phar_get_entrypfp(idata->internal_file TSRMLS_CC), (char *) &…
2432 …f zip-based phar \"%s\" (cannot read local file header for file \"%s\")", idata->phar->fname, entr…
2438 php_stream_seek(phar_get_entrypfp(idata->internal_file TSRMLS_CC),
2443 if (sizeof(desc) != php_stream_read(phar_get_entrypfp(idata->internal_file TSRMLS_CC),
2445 …p-based phar \"%s\" (cannot read local data descriptor for file \"%s\")", idata->phar->fname, entr…
2457 …r \"%s\" (local header of file \"%s\" does not match central directory)", idata->phar->fname, entr…
2465 if (idata->zero && idata->zero != entry->offset_abs) {
2466 idata->zero = entry->offset_abs;
2474 php_stream_seek(fp, idata->zero, SEEK_SET);
2480 php_stream_seek(fp, idata->zero, SEEK_SET);
2486 …ror: internal corruption of phar \"%s\" (crc32 mismatch on file \"%s\")", idata->phar->fname, entr…