Lines Matching refs:idata
429 int phar_entry_delref(phar_entry_data *idata TSRMLS_DC) /* {{{ */ in phar_entry_delref()
433 if (idata->internal_file && !idata->internal_file->is_persistent) { in phar_entry_delref()
434 if (--idata->internal_file->fp_refcount < 0) { in phar_entry_delref()
435 idata->internal_file->fp_refcount = 0; in phar_entry_delref()
438 …if (idata->fp && idata->fp != idata->phar->fp && idata->fp != idata->phar->ufp && idata->fp != ida… in phar_entry_delref()
439 php_stream_close(idata->fp); in phar_entry_delref()
442 if (idata->internal_file->is_temp_dir) { in phar_entry_delref()
443 destroy_phar_manifest_entry((void *)idata->internal_file); in phar_entry_delref()
444 efree(idata->internal_file); in phar_entry_delref()
448 phar_archive_delref(idata->phar TSRMLS_CC); in phar_entry_delref()
449 efree(idata); in phar_entry_delref()
457 void phar_entry_remove(phar_entry_data *idata, char **error TSRMLS_DC) /* {{{ */ in phar_entry_remove() argument
461 phar = idata->phar; in phar_entry_remove()
463 if (idata->internal_file->fp_refcount < 2) { in phar_entry_remove()
464 …if (idata->fp && idata->fp != idata->phar->fp && idata->fp != idata->phar->ufp && idata->fp != ida… in phar_entry_remove()
465 php_stream_close(idata->fp); in phar_entry_remove()
467 …zend_hash_del(&idata->phar->manifest, idata->internal_file->filename, idata->internal_file->filena… in phar_entry_remove()
468 idata->phar->refcount--; in phar_entry_remove()
469 efree(idata); in phar_entry_remove()
471 idata->internal_file->is_deleted = 1; in phar_entry_remove()
472 phar_entry_delref(idata TSRMLS_CC); in phar_entry_remove()
2398 int phar_postprocess_file(phar_entry_data *idata, php_uint32 crc32, char **error, int process_zip T… argument
2401 int len = idata->internal_file->uncompressed_filesize;
2402 php_stream *fp = idata->fp;
2403 phar_entry_info *entry = idata->internal_file;
2414 if (SUCCESS != phar_open_archive_fp(idata->phar TSRMLS_CC)) {
2415 …p-based phar archive \"%s\" to verify local file header for file \"%s\"", idata->phar->fname, entr…
2418 …php_stream_seek(phar_get_entrypfp(idata->internal_file TSRMLS_CC), entry->header_offset, SEEK_SET);
2420 …if (sizeof(local) != php_stream_read(phar_get_entrypfp(idata->internal_file TSRMLS_CC), (char *) &…
2422 …f zip-based phar \"%s\" (cannot read local file header for file \"%s\")", idata->phar->fname, entr…
2428 php_stream_seek(phar_get_entrypfp(idata->internal_file TSRMLS_CC),
2433 if (sizeof(desc) != php_stream_read(phar_get_entrypfp(idata->internal_file TSRMLS_CC),
2435 …p-based phar \"%s\" (cannot read local data descriptor for file \"%s\")", idata->phar->fname, entr…
2447 …r \"%s\" (local header of file \"%s\" does not match central directory)", idata->phar->fname, entr…
2455 if (idata->zero && idata->zero != entry->offset_abs) {
2456 idata->zero = entry->offset_abs;
2464 php_stream_seek(fp, idata->zero, SEEK_SET);
2470 php_stream_seek(fp, idata->zero, SEEK_SET);
2476 …ror: internal corruption of phar \"%s\" (crc32 mismatch on file \"%s\")", idata->phar->fname, entr…