Lines Matching refs:local
450 phar_zip_file_header local; /* Warning: only filled in when the entry is not a directory! */ in phar_parse_zipfile() local
460 if (sizeof(local) != php_stream_read(fp, (char *) &local, sizeof(local))) { in phar_parse_zipfile()
470 if (entry.filename_len != PHAR_GET_16(local.filename_len)) { in phar_parse_zipfile()
478 + PHAR_GET_16(local.extra_len); in phar_parse_zipfile()
636 … PHAR_GET_32(local.crc32) || entry.uncompressed_filesize != PHAR_GET_32(local.uncompsize) || entry… in phar_parse_zipfile()
872 phar_zip_file_header local; in phar_zip_changed_apply_int() local
896 memset(&local, 0, sizeof(local)); in phar_zip_changed_apply_int()
899 memcpy(local.signature, "PK\3\4", 4); in phar_zip_changed_apply_int()
902 PHAR_SET_16(local.extra_len, sizeof(perms)); in phar_zip_changed_apply_int()
916 PHAR_SET_16(local.compressed, PHAR_ZIP_COMP_DEFLATE); in phar_zip_changed_apply_int()
921 PHAR_SET_16(local.compressed, PHAR_ZIP_COMP_BZIP2); in phar_zip_changed_apply_int()
925 phar_zip_u2d_time(entry->timestamp, local.timestamp, local.datestamp); in phar_zip_changed_apply_int()
926 memcpy(central.timestamp, local.timestamp, sizeof(local.timestamp)); in phar_zip_changed_apply_int()
927 memcpy(central.datestamp, local.datestamp, sizeof(local.datestamp)); in phar_zip_changed_apply_int()
929 PHAR_SET_16(local.filename_len, entry->filename_len + (entry->is_dir ? 1 : 0)); in phar_zip_changed_apply_int()
933 general_purpose_flags = PHAR_GET_16(local.flags); in phar_zip_changed_apply_int()
934 PHAR_SET_16(local.flags, general_purpose_flags | (1 << 11)); in phar_zip_changed_apply_int()
975 PHAR_SET_32(local.uncompsize, entry->uncompressed_filesize); in phar_zip_changed_apply_int()
981 PHAR_SET_32(local.compsize, entry->uncompressed_filesize); in phar_zip_changed_apply_int()
1026 PHAR_SET_32(local.compsize, entry->compressed_filesize); in phar_zip_changed_apply_int()
1034 PHAR_SET_32(local.uncompsize, entry->uncompressed_filesize); in phar_zip_changed_apply_int()
1036 PHAR_SET_32(local.compsize, entry->compressed_filesize); in phar_zip_changed_apply_int()
1046 PHAR_SET_32(local.crc32, entry->crc32); in phar_zip_changed_apply_int()
1055 …offset = entry->header_offset + sizeof(local) + entry->filename_len + (entry->is_dir ? 1 : 0) + si… in phar_zip_changed_apply_int()
1057 if (sizeof(local) != php_stream_write(p->filefp, (char *)&local, sizeof(local))) { in phar_zip_changed_apply_int()