Lines Matching refs:zipentry
340 phar_zip_central_dir_file zipentry; in phar_parse_zipfile() local
343 if (sizeof(zipentry) != php_stream_read(fp, (char *) &zipentry, sizeof(zipentry))) { in phar_parse_zipfile()
348 if (memcmp("PK\1\2", zipentry.signature, 4)) { in phar_parse_zipfile()
357 entry.compressed_filesize = PHAR_GET_32(zipentry.compsize); in phar_parse_zipfile()
358 entry.uncompressed_filesize = PHAR_GET_32(zipentry.uncompsize); in phar_parse_zipfile()
359 entry.crc32 = PHAR_GET_32(zipentry.crc32); in phar_parse_zipfile()
361 entry.timestamp = phar_zip_d2u_time(zipentry.timestamp, zipentry.datestamp); in phar_parse_zipfile()
363 entry.header_offset = PHAR_GET_32(zipentry.offset); in phar_parse_zipfile()
364 ….offset = entry.offset_abs = PHAR_GET_32(zipentry.offset) + sizeof(phar_zip_file_header) + PHAR_GE… in phar_parse_zipfile()
365 PHAR_GET_16(zipentry.extra_len); in phar_parse_zipfile()
367 if (PHAR_GET_16(zipentry.flags) & PHAR_ZIP_FLAG_ENCRYPTED) { in phar_parse_zipfile()
371 if (!PHAR_GET_16(zipentry.filename_len)) { in phar_parse_zipfile()
375 entry.filename_len = PHAR_GET_16(zipentry.filename_len); in phar_parse_zipfile()
418 …p_file_header) + entry.header_offset + entry.filename_len + PHAR_GET_16(zipentry.extra_len), SEEK_… in phar_parse_zipfile()
453 if (PHAR_GET_16(zipentry.extra_len)) { in phar_parse_zipfile()
455 if (FAILURE == phar_zip_process_extra(fp, &entry, PHAR_GET_16(zipentry.extra_len))) { in phar_parse_zipfile()
459 php_stream_seek(fp, loc + PHAR_GET_16(zipentry.extra_len), SEEK_SET); in phar_parse_zipfile()
462 switch (PHAR_GET_16(zipentry.compressed)) { in phar_parse_zipfile()
522 if (PHAR_GET_16(zipentry.comment_len)) { in phar_parse_zipfile()
523 …if (PHAR_GET_16(zipentry.comment_len) != php_stream_read(fp, buf, PHAR_GET_16(zipentry.comment_len… in phar_parse_zipfile()
529 entry.metadata_len = PHAR_GET_16(zipentry.comment_len); in phar_parse_zipfile()
531 if (phar_parse_metadata(&p, &(entry.metadata), PHAR_GET_16(zipentry.comment_len)) == FAILURE) { in phar_parse_zipfile()
535 …ZVAL_NEW_STR(&entry.metadata, zend_string_init(buf, PHAR_GET_16(zipentry.comment_len), entry.is_pe… in phar_parse_zipfile()
549 php_stream_seek(fp, PHAR_GET_32(zipentry.offset), SEEK_SET); in phar_parse_zipfile()