Lines Matching refs:PHAR_GET_16

21 #define PHAR_GET_16(var) ((php_uint16)((((php_uint16)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()
204 if (PHAR_GET_16(locator.centraldisk) != 0 || PHAR_GET_16(locator.disknumber) != 0) { in phar_parse_zipfile()
213 if (PHAR_GET_16(locator.counthere) != PHAR_GET_16(locator.count)) { in phar_parse_zipfile()
225 if (PHAR_GET_16(locator.comment_len)) { in phar_parse_zipfile()
229 if (PHAR_GET_16(locator.comment_len) != size - (metadata - buf)) { in phar_parse_zipfile()
238 mydata->metadata_len = PHAR_GET_16(locator.comment_len); in phar_parse_zipfile()
240 …if (phar_parse_metadata(&metadata, &mydata->metadata, PHAR_GET_16(locator.comment_len)) == FAILURE… in phar_parse_zipfile()
244 …ZVAL_NEW_STR(&mydata->metadata, zend_string_init(metadata, PHAR_GET_16(locator.comment_len), mydat… in phar_parse_zipfile()
284 zend_hash_init(&mydata->manifest, PHAR_GET_16(locator.count), in phar_parse_zipfile()
288 zend_hash_init(&mydata->virtual_dirs, PHAR_GET_16(locator.count) * 2, in phar_parse_zipfile()
339 for (i = 0; i < PHAR_GET_16(locator.count); ++i) { in phar_parse_zipfile()
364 …et_abs = PHAR_GET_32(zipentry.offset) + sizeof(phar_zip_file_header) + PHAR_GET_16(zipentry.filena… 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()
416 php_stream_write(sigfile, metadata, PHAR_GET_16(locator.comment_len)); in phar_parse_zipfile()
418 …eof(phar_zip_file_header) + entry.header_offset + entry.filename_len + PHAR_GET_16(zipentry.extra_… in phar_parse_zipfile()
443 if (i != PHAR_GET_16(locator.count) - 1) { in phar_parse_zipfile()
452 if (PHAR_GET_16(zipentry.extra_len)) { in phar_parse_zipfile()
454 if (FAILURE == phar_zip_process_extra(fp, &entry, PHAR_GET_16(zipentry.extra_len))) { in phar_parse_zipfile()
458 php_stream_seek(fp, loc + PHAR_GET_16(zipentry.extra_len), SEEK_SET); in phar_parse_zipfile()
461 switch (PHAR_GET_16(zipentry.compressed)) { in phar_parse_zipfile()
521 if (PHAR_GET_16(zipentry.comment_len)) { in phar_parse_zipfile()
522 …if (PHAR_GET_16(zipentry.comment_len) != php_stream_read(fp, buf, PHAR_GET_16(zipentry.comment_len… in phar_parse_zipfile()
528 entry.metadata_len = PHAR_GET_16(zipentry.comment_len); in phar_parse_zipfile()
530 if (phar_parse_metadata(&p, &(entry.metadata), PHAR_GET_16(zipentry.comment_len)) == FAILURE) { in phar_parse_zipfile()
534 …ZVAL_NEW_STR(&entry.metadata, zend_string_init(buf, PHAR_GET_16(zipentry.comment_len), entry.is_pe… in phar_parse_zipfile()
556 …if (entry.filename_len != PHAR_GET_16(local.filename_len) || entry.crc32 != PHAR_GET_32(local.crc3… in phar_parse_zipfile()
563 …sizeof(local) + entry.header_offset + PHAR_GET_16(local.filename_len) + PHAR_GET_16(local.extra_le… in phar_parse_zipfile()