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 mydata->metadata_len = PHAR_GET_16(locator.comment_len); in phar_parse_zipfile()
269 …if (phar_parse_metadata(&metadata, &mydata->metadata, PHAR_GET_16(locator.comment_len)) == FAILURE… in phar_parse_zipfile()
273 …ZVAL_NEW_STR(&mydata->metadata, zend_string_init(metadata, PHAR_GET_16(locator.comment_len), mydat… in phar_parse_zipfile()
312 zend_hash_init(&mydata->manifest, PHAR_GET_16(locator.count), in phar_parse_zipfile()
316 zend_hash_init(&mydata->virtual_dirs, PHAR_GET_16(locator.count) * 2, in phar_parse_zipfile()
367 for (i = 0; i < PHAR_GET_16(locator.count); ++i) { in phar_parse_zipfile()
392 …et_abs = PHAR_GET_32(zipentry.offset) + sizeof(phar_zip_file_header) + PHAR_GET_16(zipentry.filena… in phar_parse_zipfile()
393 PHAR_GET_16(zipentry.extra_len); in phar_parse_zipfile()
395 if (PHAR_GET_16(zipentry.flags) & PHAR_ZIP_FLAG_ENCRYPTED) { in phar_parse_zipfile()
399 if (!PHAR_GET_16(zipentry.filename_len)) { in phar_parse_zipfile()
403 entry.filename_len = PHAR_GET_16(zipentry.filename_len); in phar_parse_zipfile()
449 php_stream_write(sigfile, metadata, PHAR_GET_16(locator.comment_len)); in phar_parse_zipfile()
451 …eof(phar_zip_file_header) + entry.header_offset + entry.filename_len + PHAR_GET_16(zipentry.extra_… in phar_parse_zipfile()
477 if (i != PHAR_GET_16(locator.count) - 1) { in phar_parse_zipfile()
486 if (PHAR_GET_16(zipentry.extra_len)) { in phar_parse_zipfile()
488 if (FAILURE == phar_zip_process_extra(fp, &entry, PHAR_GET_16(zipentry.extra_len))) { in phar_parse_zipfile()
492 php_stream_seek(fp, loc + PHAR_GET_16(zipentry.extra_len), SEEK_SET); in phar_parse_zipfile()
495 switch (PHAR_GET_16(zipentry.compressed)) { in phar_parse_zipfile()
555 if (PHAR_GET_16(zipentry.comment_len)) { in phar_parse_zipfile()
556 …if (PHAR_GET_16(zipentry.comment_len) != php_stream_read(fp, buf, PHAR_GET_16(zipentry.comment_len… in phar_parse_zipfile()
562 entry.metadata_len = PHAR_GET_16(zipentry.comment_len); in phar_parse_zipfile()
564 if (phar_parse_metadata(&p, &(entry.metadata), PHAR_GET_16(zipentry.comment_len)) == FAILURE) { in phar_parse_zipfile()
568 …ZVAL_NEW_STR(&entry.metadata, zend_string_init(buf, PHAR_GET_16(zipentry.comment_len), entry.is_pe… in phar_parse_zipfile()
590 …if (entry.filename_len != PHAR_GET_16(local.filename_len) || entry.crc32 != PHAR_GET_32(local.crc3… in phar_parse_zipfile()
597 …sizeof(local) + entry.header_offset + PHAR_GET_16(local.filename_len) + PHAR_GET_16(local.extra_le… in phar_parse_zipfile()
883 general_purpose_flags = PHAR_GET_16(central.flags); in phar_zip_changed_apply_int()
885 general_purpose_flags = PHAR_GET_16(local.flags); in phar_zip_changed_apply_int()