Searched refs:uncompressed_filesize (Results 1 – 8 of 8) sorted by relevance
/php-src/ext/phar/ |
H A D | zip.c | 494 if (entry.uncompressed_filesize > 0x10000) { in phar_parse_zipfile() 514 sig = (char *) emalloc(entry.uncompressed_filesize); in phar_parse_zipfile() 651 mydata->alias_len = entry.uncompressed_filesize; in phar_parse_zipfile() 667 entry.uncompressed_filesize = ZSTR_LEN(str); in phar_parse_zipfile() 672 entry.uncompressed_filesize = 0; in phar_parse_zipfile() 676 if (!entry.uncompressed_filesize || !actual_alias) { in phar_parse_zipfile() 699 entry.uncompressed_filesize = ZSTR_LEN(str); in phar_parse_zipfile() 704 entry.uncompressed_filesize = 0; in phar_parse_zipfile() 721 entry.uncompressed_filesize = ZSTR_LEN(str); in phar_parse_zipfile() 726 entry.uncompressed_filesize = 0; in phar_parse_zipfile() [all …]
|
H A D | tar.c | 169 metadata = (char *) safe_emalloc(1, entry->uncompressed_filesize, 1); in phar_tar_process_metadata() 171 read = php_stream_read(fp, metadata, entry->uncompressed_filesize); in phar_tar_process_metadata() 172 if (read != entry->uncompressed_filesize) { in phar_tar_process_metadata() 274 size = entry.uncompressed_filesize = entry.compressed_filesize = in phar_parse_tarfile() 366 entry.filename_len = entry.uncompressed_filesize; in phar_parse_tarfile() 814 if (entry->uncompressed_filesize) { in phar_tar_writeheaders_int() 834 …php_stream_write(fp->new, padding, ((entry->uncompressed_filesize +511)&~511) - entry->uncompresse… in phar_tar_writeheaders_int() 1015 entry.uncompressed_filesize = phar->alias_len; in phar_tar_flush() 1044 entry.uncompressed_filesize = len + end_sequence_len; in phar_tar_flush() 1075 entry.uncompressed_filesize = entry.compressed_filesize = sizeof(newstub) - 1; in phar_tar_flush() [all …]
|
H A D | stream.c | 214 if (idata->internal_file->uncompressed_filesize == 0 in phar_wrapper_open_url() 274 entry->compressed_filesize = entry->uncompressed_filesize = phar->halt_offset; in phar_wrapper_open_url() 312 fprintf(stderr, "Size: %u\n", idata->internal_file->uncompressed_filesize); in phar_wrapper_open_url() 390 …got = php_stream_read(data->fp, buf, MIN(count, (size_t)(entry->uncompressed_filesize - data->posi… in phar_stream_read() 392 stream->eof = (data->position == (zend_off_t) entry->uncompressed_filesize); in phar_stream_read() 416 temp = data->zero + entry->uncompressed_filesize + offset; in phar_stream_seek() 427 if (temp > data->zero + (zend_off_t) entry->uncompressed_filesize) { in phar_stream_seek() 455 if (data->position > (zend_off_t)data->internal_file->uncompressed_filesize) { in phar_stream_write() 456 data->internal_file->uncompressed_filesize = data->position; in phar_stream_write() 458 data->internal_file->compressed_filesize = data->internal_file->uncompressed_filesize; in phar_stream_write() [all …]
|
H A D | util.c | 164 temp = eoffset + entry->uncompressed_filesize + offset; in phar_seek_efp() 176 if (temp > eoffset + (zend_off_t) entry->uncompressed_filesize) { in phar_seek_efp() 250 entry.uncompressed_filesize = entry.compressed_filesize = ssb.sb.st_size; in phar_mount_entry() 376 entry->uncompressed_filesize = 0; in phar_create_writeable_entry() 409 entry->uncompressed_filesize = 0; in phar_create_writeable_entry() 444 …if (SUCCESS != php_stream_copy_to_stream_ex(phar_get_efp(link, 0), fp, link->uncompressed_filesize… in phar_separate_entry_fp() 802 …php_stream_copy_to_stream_ex(phar_get_efp(link, 0), dest->fp, link->uncompressed_filesize, NULL)) { in phar_copy_entry_fp() 927 if (entry->uncompressed_filesize) { in phar_open_entry_fp() 939 if (php_stream_tell(ufp) - loc != (zend_off_t) entry->uncompressed_filesize) { in phar_open_entry_fp()
|
H A D | phar.c | 1160 PHAR_GET_32(buffer, entry.uncompressed_filesize); in phar_parse_pharfile() 1214 if (entry.uncompressed_filesize != entry.compressed_filesize) { in phar_parse_pharfile() 2423 …lename_len) || entry->crc32 != PHAR_ZIP_32(local.crc32) || entry->uncompressed_filesize != PHAR_ZI… in phar_postprocess_file() 2444 …d_result ret = php_crc32_stream_bulk_update(&crc, fp, idata->internal_file->uncompressed_filesize); in phar_postprocess_file() 2764 php_crc32_stream_bulk_update(&newcrc32, file, entry->uncompressed_filesize); in phar_flush_ex() 2769 entry->compressed_filesize = entry->uncompressed_filesize; in phar_flush_ex() 2822 …if (SUCCESS != php_stream_copy_to_stream_ex(file, entry->cfp, entry->uncompressed_filesize, NULL))… in phar_flush_ex() 2963 phar_set_32(entry_buffer, entry->uncompressed_filesize); in phar_flush_ex()
|
H A D | phar_object.c | 182 …r.line_len = spprintf((char **) &(ctr.line), 0, "Content-length: %u", info->uncompressed_filesize); in phar_file_action() 208 got = php_stream_read(fp, buf, MIN(8192, info->uncompressed_filesize - position)); in phar_file_action() 212 if (position == (zend_off_t) info->uncompressed_filesize) { in phar_file_action() 1674 data->internal_file->uncompressed_filesize = data->internal_file->compressed_filesize = in phar_build() 1702 …data->internal_file->compressed_filesize = data->internal_file->uncompressed_filesize = contents_l… in phar_build() 1960 …if (SUCCESS != php_stream_copy_to_stream_ex(phar_get_efp(link, 0), fp, link->uncompressed_filesize… in phar_copy_file_contents() 3670 …data->internal_file->compressed_filesize = data->internal_file->uncompressed_filesize = contents_l… in phar_add_file() 3945 len = stub->uncompressed_filesize; in PHP_METHOD() 4290 … != php_stream_copy_to_stream_ex(phar_get_efp(entry, 0), fp, entry->uncompressed_filesize, NULL)) { in phar_extract_file() 4871 str = php_stream_copy_to_mem(fp, link->uncompressed_filesize, 0); in PHP_METHOD()
|
H A D | phar_internal.h | 198 uint32_t uncompressed_filesize; member
|
H A D | func_interceptors.c | 603 sb.st_size = data->uncompressed_filesize; in phar_file_stat()
|
Completed in 55 milliseconds