Lines Matching refs:zipentry
352 phar_zip_central_dir_file zipentry; in phar_parse_zipfile() local
355 if (sizeof(zipentry) != php_stream_read(fp, (char *) &zipentry, sizeof(zipentry))) { in phar_parse_zipfile()
360 if (memcmp("PK\1\2", zipentry.signature, 4)) { in phar_parse_zipfile()
369 entry.compressed_filesize = PHAR_GET_32(zipentry.compsize); in phar_parse_zipfile()
370 entry.uncompressed_filesize = PHAR_GET_32(zipentry.uncompsize); in phar_parse_zipfile()
371 entry.crc32 = PHAR_GET_32(zipentry.crc32); in phar_parse_zipfile()
373 entry.timestamp = phar_zip_d2u_time(zipentry.timestamp, zipentry.datestamp); in phar_parse_zipfile()
375 entry.header_offset = PHAR_GET_32(zipentry.offset); in phar_parse_zipfile()
376 ….offset = entry.offset_abs = PHAR_GET_32(zipentry.offset) + sizeof(phar_zip_file_header) + PHAR_GE… in phar_parse_zipfile()
377 PHAR_GET_16(zipentry.extra_len); in phar_parse_zipfile()
379 if (PHAR_GET_16(zipentry.flags) & PHAR_ZIP_FLAG_ENCRYPTED) { in phar_parse_zipfile()
383 if (!PHAR_GET_16(zipentry.filename_len)) { in phar_parse_zipfile()
387 entry.filename_len = PHAR_GET_16(zipentry.filename_len); in phar_parse_zipfile()
428 …p_file_header) + entry.header_offset + entry.filename_len + PHAR_GET_16(zipentry.extra_len), SEEK_… in phar_parse_zipfile()
462 if (PHAR_GET_16(zipentry.extra_len)) { in phar_parse_zipfile()
464 if (FAILURE == phar_zip_process_extra(fp, &entry, PHAR_GET_16(zipentry.extra_len) TSRMLS_CC)) { in phar_parse_zipfile()
468 php_stream_seek(fp, loc + PHAR_GET_16(zipentry.extra_len), SEEK_SET); in phar_parse_zipfile()
471 switch (PHAR_GET_16(zipentry.compressed)) { in phar_parse_zipfile()
531 if (PHAR_GET_16(zipentry.comment_len)) { in phar_parse_zipfile()
532 …if (PHAR_GET_16(zipentry.comment_len) != php_stream_read(fp, buf, PHAR_GET_16(zipentry.comment_len… in phar_parse_zipfile()
538 entry.metadata_len = PHAR_GET_16(zipentry.comment_len); in phar_parse_zipfile()
540 …if (phar_parse_metadata(&p, &(entry.metadata), PHAR_GET_16(zipentry.comment_len) TSRMLS_CC) == FAI… in phar_parse_zipfile()
551 …(entry.metadata, pestrndup(buf, PHAR_GET_16(zipentry.comment_len), entry.is_persistent), PHAR_GET_… in phar_parse_zipfile()
565 php_stream_seek(fp, PHAR_GET_32(zipentry.offset), SEEK_SET); in phar_parse_zipfile()