Home
last modified time | relevance | path

Searched refs:uncompressed_filesize (Results 1 – 8 of 8) sorted by relevance

/PHP-5.4/ext/phar/
H A Dzip.c429 sig = (char *) emalloc(entry.uncompressed_filesize); in phar_parse_zipfile()
431 if (read != entry.uncompressed_filesize) { in phar_parse_zipfile()
594 mydata->alias_len = entry.uncompressed_filesize; in phar_parse_zipfile()
606 …if (!(entry.uncompressed_filesize = php_stream_copy_to_mem(fp, &actual_alias, entry.uncompressed_f… in phar_parse_zipfile()
627 …if (!(entry.uncompressed_filesize = php_stream_copy_to_mem(fp, &actual_alias, entry.uncompressed_f… in phar_parse_zipfile()
638 …if (!(entry.uncompressed_filesize = php_stream_copy_to_mem(fp, &actual_alias, entry.uncompressed_f… in phar_parse_zipfile()
872 for (loc = 0;loc < entry->uncompressed_filesize; ++loc) { in phar_zip_changed_apply()
878 PHAR_SET_32(local.uncompsize, entry->uncompressed_filesize); in phar_zip_changed_apply()
882 entry->compressed_filesize = entry->uncompressed_filesize; in phar_zip_changed_apply()
884 PHAR_SET_32(local.compsize, entry->uncompressed_filesize); in phar_zip_changed_apply()
[all …]
H A Dtar.c164 metadata = (char *) safe_emalloc(1, entry->uncompressed_filesize, 1); in phar_tar_process_metadata()
166 read = php_stream_read(fp, metadata, entry->uncompressed_filesize); in phar_tar_process_metadata()
167 if (read != entry->uncompressed_filesize) { in phar_tar_process_metadata()
255 size = entry.uncompressed_filesize = entry.compressed_filesize = in phar_parse_tarfile()
339 entry.filename_len = entry.uncompressed_filesize; in phar_parse_tarfile()
774 if (entry->uncompressed_filesize) { in phar_tar_writeheaders()
794 …php_stream_write(fp->new, padding, ((entry->uncompressed_filesize +511)&~511) - entry->uncompresse… in phar_tar_writeheaders()
966 entry.uncompressed_filesize = phar->alias_len; in phar_tar_flush()
1027 entry.uncompressed_filesize = len + 5; in phar_tar_flush()
1063 entry.uncompressed_filesize = entry.compressed_filesize = sizeof(newstub) - 1; in phar_tar_flush()
[all …]
H A Dstream.c213 if (idata->internal_file->uncompressed_filesize == 0 in phar_wrapper_open_url()
266 entry->compressed_filesize = entry->uncompressed_filesize = phar->halt_offset; in phar_wrapper_open_url()
304 fprintf(stderr, "Size: %u\n", idata->internal_file->uncompressed_filesize); in phar_wrapper_open_url()
379 got = php_stream_read(data->fp, buf, MIN(count, entry->uncompressed_filesize - data->position)); in phar_stream_read()
381 stream->eof = (data->position == (off_t) entry->uncompressed_filesize); in phar_stream_read()
405 temp = data->zero + entry->uncompressed_filesize + offset; in phar_stream_seek()
416 if (temp > data->zero + (off_t) entry->uncompressed_filesize) { in phar_stream_seek()
444 if (data->position > (off_t)data->internal_file->uncompressed_filesize) { in phar_stream_write()
445 data->internal_file->uncompressed_filesize = data->position; in phar_stream_write()
447 data->internal_file->compressed_filesize = data->internal_file->uncompressed_filesize; in phar_stream_write()
[all …]
H A Dutil.c149 temp = eoffset + entry->uncompressed_filesize + offset; in phar_seek_efp()
161 if (temp > eoffset + (off_t) entry->uncompressed_filesize) { in phar_seek_efp()
242 entry.uncompressed_filesize = entry.compressed_filesize = ssb.sb.st_size; in phar_mount_entry()
903 …eam_copy_to_stream(phar_get_efp(link, 0 TSRMLS_CC), dest->fp, link->uncompressed_filesize, NULL)) { in phar_copy_entry_fp()
1004 if (entry->uncompressed_filesize) { in phar_open_entry_fp()
1016 if (php_stream_tell(ufp) - loc != (off_t) entry->uncompressed_filesize) { in phar_open_entry_fp()
1079 entry->uncompressed_filesize = 0; in phar_create_writeable_entry()
1112 entry->uncompressed_filesize = 0; in phar_create_writeable_entry()
1147 …ar_stream_copy_to_stream(phar_get_efp(link, 0 TSRMLS_CC), fp, link->uncompressed_filesize, NULL)) { in phar_separate_entry_fp()
H A Dphar.c1086 PHAR_GET_32(buffer, entry.uncompressed_filesize);
1156 if (entry.uncompressed_filesize != entry.compressed_filesize) {
2408 int len = idata->internal_file->uncompressed_filesize;
2453 …lename_len) || entry->crc32 != PHAR_ZIP_32(local.crc32) || entry->uncompressed_filesize != PHAR_ZI…
2842 mytime = entry->uncompressed_filesize;
2850 entry->compressed_filesize = entry->uncompressed_filesize;
2897 if (SUCCESS != phar_stream_copy_to_stream(file, entry->cfp, entry->uncompressed_filesize, NULL)) {
3045 phar_set_32(entry_buffer, entry->uncompressed_filesize);
H A Dphar_object.c203 ctr.line_len = spprintf(&(ctr.line), 0, "Content-length: %u", info->uncompressed_filesize); in phar_file_action()
229 got = php_stream_read(fp, buf, MIN(8192, info->uncompressed_filesize - position)); in phar_file_action()
233 if (position == (off_t) info->uncompressed_filesize) { in phar_file_action()
1780 data->internal_file->uncompressed_filesize = data->internal_file->compressed_filesize =
1798 …data->internal_file->compressed_filesize = data->internal_file->uncompressed_filesize = contents_l…
2073 …ar_stream_copy_to_stream(phar_get_efp(link, 0 TSRMLS_CC), fp, link->uncompressed_filesize, NULL)) {
3748 …data->internal_file->compressed_filesize = data->internal_file->uncompressed_filesize = contents_l…
4030 len = stub->uncompressed_filesize;
4360 …_stream_copy_to_stream(phar_get_efp(entry, 0 TSRMLS_CC), fp, entry->uncompressed_filesize, NULL)) {
4980 …n_value) = php_stream_copy_to_mem(fp, &(Z_STRVAL_P(return_value)), link->uncompressed_filesize, 0);
H A Dphar_internal.h254 php_uint32 uncompressed_filesize; member
H A Dfunc_interceptors.c745 sb.st_size = data->uncompressed_filesize; in phar_file_stat()

Completed in 42 milliseconds