Searched refs:comp_method (Results 1 – 16 of 16) sorted by relevance
/PHP-7.2/ext/zip/lib/ |
H A D | zip_close.c | 248 st.comp_method = ZIP_CM_STORE; in add_data() 251 if (ZIP_CM_IS_DEFAULT(de->comp_method) && st.comp_method != ZIP_CM_STORE) in add_data() 252 de->comp_method = st.comp_method; in add_data() 253 else if (de->comp_method == ZIP_CM_STORE && (st.valid & ZIP_STAT_SIZE)) { in add_data() 271 …if (( ((de->comp_method == ZIP_CM_DEFLATE || ZIP_CM_IS_DEFAULT(de->comp_method)) && st.size > MAX_… in add_data() 272 …|| (de->comp_method != ZIP_CM_STORE && de->comp_method != ZIP_CM_DEFLATE && !ZIP_CM_IS_DEFAULT(de-… in add_data() 289 …if (st.comp_method == ZIP_CM_STORE || (ZIP_CM_IS_DEFAULT(de->comp_method) && st.comp_method != de-… in add_data() 293 if (st.comp_method != ZIP_CM_STORE) { in add_data() 298 if ((s_store=comp_impl(za, src, st.comp_method, ZIP_CODEC_DECODE)) == NULL) { in add_data() 321 s2 = comp_impl(za, s_crc, de->comp_method, ZIP_CODEC_ENCODE); in add_data() [all …]
|
H A D | zip_stat_init.c | 49 st->comp_method = ZIP_CM_STORE; in zip_stat_init() 74 dst->comp_method = src->comp_method; in _zip_stat_merge()
|
H A D | zip_source_zip_new.c | 96 if (st.comp_method != ZIP_CM_STORE) { in _zip_source_zip_new() 97 if ((comp_impl=_zip_get_compression_implementation(st.comp_method)) == NULL) { in _zip_source_zip_new() 116 st2.comp_method = ZIP_CM_STORE; in _zip_source_zip_new() 146 s2 = comp_impl(za, src, st.comp_method, 0); in _zip_source_zip_new() 153 …if (((flags & ZIP_FL_COMPRESSED) == 0 || st.comp_method == ZIP_CM_STORE) && (len == 0 || len == st… in _zip_source_zip_new()
|
H A D | zip_set_file_compression.c | 61 old_method = (e->orig == NULL ? ZIP_CM_DEFAULT : e->orig->comp_method); in zip_set_file_compression() 82 e->changes->comp_method = method; in zip_set_file_compression()
|
H A D | zip_stat_index.c | 66 st->comp_method = (zip_uint16_t)de->comp_method; in zip_stat_index()
|
H A D | zip_unchange_data.c | 45 …ULL && (ze->changes->changed & ZIP_DIRENT_COMP_METHOD) && ze->changes->comp_method == ZIP_CM_REPLA… in _zip_unchange_data()
|
H A D | zip_file_replace.c | 101 za->entry[idx].changes->comp_method = ZIP_CM_REPLACED_DEFAULT; in _zip_file_replace()
|
H A D | zip_source_deflate.c | 316 st->comp_method = ctx->is_stored ? ZIP_CM_STORE : ZIP_CM_DEFLATE; in deflate_compress() 387 st->comp_method = ZIP_CM_STORE; in deflate_decompress()
|
H A D | zip_source_crc.c | 151 st->comp_method = ZIP_CM_STORE; in crc_read()
|
H A D | zip_dirent.c | 248 de->comp_method = ZIP_CM_DEFAULT; in _zip_dirent_init() 338 zde->comp_method = _zip_buffer_get_16(buffer); in _zip_dirent_read() 711 _zip_buffer_put_16(buffer, (zip_uint16_t)de->comp_method); in _zip_dirent_write()
|
H A D | zip_source_buffer.c | 201 st->comp_method = ZIP_CM_STORE; in read_data()
|
H A D | zip_open.c | 500 || (central->comp_method != local->comp_method) in _zip_headercomp()
|
H A D | zip.h | 287 zip_uint16_t comp_method; /* compression method used */ member
|
H A D | zipint.h | 347 zip_int32_t comp_method; /* (cl) compression method used (uint16 and ZIP_CM_DEFAULT (-1)) */ member
|
/PHP-7.2/ext/zip/tests/ |
H A D | compression_methods.phpt | 25 var_dump($zip->statName($filename)['comp_method'] === $method);
|
/PHP-7.2/ext/zip/ |
H A D | php_zip.c | 397 add_ascii_assoc_long(return_value, "comp_method", (zend_long) (sb)->comp_method); \ 410 add_ascii_assoc_long(return_value, "comp_method", (zend_long) (sb)->comp_method); \ 1362 switch (zr_rsrc->sb.comp_method) { in php_zip_entry_get_info() 1393 RETURN_LONG((zend_long) (zr_rsrc->sb.comp_method)); in php_zip_entry_get_info() 2419 zend_long comp_method, comp_flags = 0; in ZIPARCHIVE_METHOD() local 2428 &name, &name_len, &comp_method, &comp_flags) == FAILURE) { in ZIPARCHIVE_METHOD() 2442 (zip_int32_t)comp_method, (zip_uint32_t)comp_flags) != 0) { in ZIPARCHIVE_METHOD() 2456 zend_long comp_method, comp_flags = 0; in ZIPARCHIVE_METHOD() local 2465 &index, &comp_method, &comp_flags) == FAILURE) { in ZIPARCHIVE_METHOD() 2470 (zip_int32_t)comp_method, (zip_uint32_t)comp_flags) != 0) { in ZIPARCHIVE_METHOD()
|
Completed in 67 milliseconds