Lines Matching refs:PHAR_GET_16

21 #define PHAR_GET_16(var) ((uint16_t)((((uint16_t)var[0]) & 0xff) | \  macro
57 php_stream_seek(fp, PHAR_GET_16(h.header.size), SEEK_CUR); in phar_zip_process_extra()
58 len -= PHAR_GET_16(h.header.size) + 4; in phar_zip_process_extra()
70 if (PHAR_GET_16(h.unix3.size) > sizeof(h.unix3) - 4) { in phar_zip_process_extra()
72 php_stream_seek(fp, PHAR_GET_16(h.unix3.size) - sizeof(h.unix3.size), SEEK_CUR); in phar_zip_process_extra()
79 entry->flags |= PHAR_GET_16(h.unix3.perms) & PHAR_ENT_PERM_MASK; in phar_zip_process_extra()
81 entry->flags |= PHAR_GET_16(h.unix3.perms) & PHAR_ENT_PERM_MASK; in phar_zip_process_extra()
125 int dtime = PHAR_GET_16(cdtime), ddate = PHAR_GET_16(cddate); in phar_zip_d2u_time()
177 comment_len = PHAR_GET_16(((phar_zip_dir_end *) eocd_start)->comment_len); in phar_find_eocd()
233 if (PHAR_GET_16(locator.centraldisk) != 0 || PHAR_GET_16(locator.disknumber) != 0) { in phar_parse_zipfile()
242 if (PHAR_GET_16(locator.counthere) != PHAR_GET_16(locator.count)) { in phar_parse_zipfile()
254 if (PHAR_GET_16(locator.comment_len)) { in phar_parse_zipfile()
258 if (PHAR_GET_16(locator.comment_len) != size - (metadata - buf)) { in phar_parse_zipfile()
267 …phar_parse_metadata_lazy(metadata, &mydata->metadata_tracker, PHAR_GET_16(locator.comment_len), my… in phar_parse_zipfile()
305 zend_hash_init(&mydata->manifest, PHAR_GET_16(locator.count), in phar_parse_zipfile()
309 zend_hash_init(&mydata->virtual_dirs, PHAR_GET_16(locator.count) * 2, in phar_parse_zipfile()
360 for (i = 0; i < PHAR_GET_16(locator.count); ++i) { in phar_parse_zipfile()
388 …et_abs = PHAR_GET_32(zipentry.offset) + sizeof(phar_zip_file_header) + PHAR_GET_16(zipentry.filena… 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()
445 php_stream_write(sigfile, metadata, PHAR_GET_16(locator.comment_len)); in phar_parse_zipfile()
447 …eof(phar_zip_file_header) + entry.header_offset + entry.filename_len + PHAR_GET_16(zipentry.extra_… in phar_parse_zipfile()
473 if (i != PHAR_GET_16(locator.count) - 1) { 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()
579 …if (entry.filename_len != PHAR_GET_16(local.filename_len) || entry.crc32 != PHAR_GET_32(local.crc3… in phar_parse_zipfile()
586 …sizeof(local) + entry.header_offset + PHAR_GET_16(local.filename_len) + PHAR_GET_16(local.extra_le… in phar_parse_zipfile()
877 general_purpose_flags = PHAR_GET_16(central.flags); in phar_zip_changed_apply_int()
879 general_purpose_flags = PHAR_GET_16(local.flags); in phar_zip_changed_apply_int()