Lines Matching refs:zipentry
361 phar_zip_central_dir_file zipentry; in phar_parse_zipfile() local
367 if (sizeof(zipentry) != php_stream_read(fp, (char *) &zipentry, sizeof(zipentry))) { in phar_parse_zipfile()
372 if (memcmp("PK\1\2", zipentry.signature, 4)) { in phar_parse_zipfile()
381 entry.compressed_filesize = PHAR_GET_32(zipentry.compsize); in phar_parse_zipfile()
382 entry.uncompressed_filesize = PHAR_GET_32(zipentry.uncompsize); in phar_parse_zipfile()
383 entry.crc32 = PHAR_GET_32(zipentry.crc32); in phar_parse_zipfile()
385 entry.timestamp = phar_zip_d2u_time(zipentry.timestamp, zipentry.datestamp); in phar_parse_zipfile()
387 entry.header_offset = PHAR_GET_32(zipentry.offset); in phar_parse_zipfile()
388 ….offset = entry.offset_abs = PHAR_GET_32(zipentry.offset) + sizeof(phar_zip_file_header) + PHAR_GE… in phar_parse_zipfile()
389 PHAR_GET_16(zipentry.extra_len); in phar_parse_zipfile()
391 if (PHAR_GET_16(zipentry.flags) & PHAR_ZIP_FLAG_ENCRYPTED) { in phar_parse_zipfile()
395 if (!PHAR_GET_16(zipentry.filename_len)) { in phar_parse_zipfile()
399 entry.filename_len = PHAR_GET_16(zipentry.filename_len); in phar_parse_zipfile()
447 …p_file_header) + entry.header_offset + entry.filename_len + PHAR_GET_16(zipentry.extra_len), SEEK_… in phar_parse_zipfile()
482 if (PHAR_GET_16(zipentry.extra_len)) { in phar_parse_zipfile()
484 if (FAILURE == phar_zip_process_extra(fp, &entry, PHAR_GET_16(zipentry.extra_len))) { in phar_parse_zipfile()
488 php_stream_seek(fp, loc + PHAR_GET_16(zipentry.extra_len), SEEK_SET); in phar_parse_zipfile()
491 switch (PHAR_GET_16(zipentry.compressed)) { in phar_parse_zipfile()
551 if (PHAR_GET_16(zipentry.comment_len)) { in phar_parse_zipfile()
552 …if (PHAR_GET_16(zipentry.comment_len) != php_stream_read(fp, buf, PHAR_GET_16(zipentry.comment_len… in phar_parse_zipfile()
558 …phar_parse_metadata_lazy(buf, &entry.metadata_tracker, PHAR_GET_16(zipentry.comment_len), entry.is… in phar_parse_zipfile()
571 php_stream_seek(fp, PHAR_GET_32(zipentry.offset), SEEK_SET); in phar_parse_zipfile()