Lines Matching refs:entry

49 static void phar_mung_server_vars(char *fname, char *entry, size_t entry_len, char *basename, size_…  in phar_mung_server_vars()  argument
69 if (code > (size_t)entry_len && !memcmp(path_info, entry, entry_len)) { in phar_mung_server_vars()
77 zend_string *str = strpprintf(4096, "phar://%s%s", fname, entry); in phar_mung_server_vars()
117 ZVAL_STRINGL(stuff, entry, entry_len); in phar_mung_server_vars()
124 zend_string *str = strpprintf(4096, "phar://%s%s", fname, entry); in phar_mung_server_vars()
135 …chive_data *phar, phar_entry_info *info, char *mime_type, int code, char *entry, size_t entry_len,… in phar_file_action() argument
154 if (entry[0] == '/') { in phar_file_action()
155 spprintf(&name, 4096, "phar://%s%s", arch, entry); in phar_file_action()
157 spprintf(&name, 4096, "phar://%s/%s", arch, entry); in phar_file_action()
213 phar_mung_server_vars(arch, entry, entry_len, basename, ru_len); in phar_file_action()
217 if (entry[0] == '/') { in phar_file_action()
218 name_len = spprintf(&name, 4096, "phar://%s%s", arch, entry); in phar_file_action()
220 name_len = spprintf(&name, 4096, "phar://%s/%s", arch, entry); in phar_file_action()
230 if ((cwd = zend_memrchr(entry, '/', entry_len))) { in phar_file_action()
232 if (entry == cwd) { in phar_file_action()
236 } else if (entry[0] == '/') { in phar_file_action()
237 PHAR_G(cwd_len) = (cwd - (entry + 1)); in phar_file_action()
238 PHAR_G(cwd) = estrndup(entry + 1, PHAR_G(cwd_len)); in phar_file_action()
240 PHAR_G(cwd_len) = (cwd - entry); in phar_file_action()
241 PHAR_G(cwd) = estrndup(entry, PHAR_G(cwd_len)); in phar_file_action()
295 static void phar_do_403(char *entry, size_t entry_len) /* {{{ */ in phar_do_403() argument
309 … *phar, char *fname, size_t fname_len, char *f404, size_t f404_len, char *entry, size_t entry_len)… in phar_do_404() argument
336 static void phar_postprocess_ru_web(char *fname, size_t fname_len, char **entry, size_t *entry_len,… in phar_postprocess_ru_web() argument
338 char *e = *entry + 1, *u = NULL, *u1 = NULL, *saveu = NULL; in phar_postprocess_ru_web()
395 char *fname, *arch, *entry; in PHP_METHOD() local
406 …", 7) && SUCCESS == phar_split_fname(fname, fname_len, &arch, &arch_len, &entry, &entry_len, 2, 0)… in PHP_METHOD()
407 efree(entry); in PHP_METHOD()
431 char *fname, *arch = NULL, *entry = NULL, *path, *actual; in PHP_METHOD() local
457 …", 7) && SUCCESS == phar_split_fname(fname, fname_len, &arch, &arch_len, &entry, &entry_len, 2, 0)… in PHP_METHOD()
458 efree(entry); in PHP_METHOD()
459 entry = NULL; in PHP_METHOD()
485 if (path && path == entry) { in PHP_METHOD()
486 efree(entry); in PHP_METHOD()
496 if (entry && path && path == entry) { in PHP_METHOD()
497 efree(entry); in PHP_METHOD()
513 …} else if (SUCCESS == phar_split_fname(path, path_len, &arch, &arch_len, &entry, &entry_len, 2, 0)… in PHP_METHOD()
514 path = entry; in PHP_METHOD()
545 char *fname, *path_info, *mime_type = NULL, *entry, *pt; in PHP_METHOD() local
618 entry = estrndup(Z_STRVAL_P(z_path_info), entry_len); in PHP_METHOD()
621 memcpy(path_info + Z_STRLEN_P(z_script_name), entry, entry_len + 1); in PHP_METHOD()
625 entry = estrndup("", 0); in PHP_METHOD()
643 entry = path_info; in PHP_METHOD()
644 entry_len = strlen(entry); in PHP_METHOD()
650 entry = estrndup("", 0); in PHP_METHOD()
667 entry = estrndup(pt + (fname_len - (basename - fname)), entry_len); in PHP_METHOD()
676 ZVAL_STRINGL(&params, entry, entry_len); in PHP_METHOD()
696 efree(entry); in PHP_METHOD()
697 entry = estrndup(Z_STRVAL_P(rewrite_fci.retval), Z_STRLEN_P(rewrite_fci.retval)); in PHP_METHOD()
702 phar_do_403(entry, entry_len); in PHP_METHOD()
718 efree(entry); in PHP_METHOD()
728 phar_postprocess_ru_web(fname, fname_len, &entry, &entry_len, &ru, &ru_len); in PHP_METHOD()
731 if (!entry_len || (entry_len == 1 && entry[0] == '/')) { in PHP_METHOD()
732 efree(entry); in PHP_METHOD()
735 entry = index_php; in PHP_METHOD()
737 if (entry[0] != '/') { in PHP_METHOD()
738 spprintf(&entry, 0, "/%s", index_php); in PHP_METHOD()
743 entry = estrndup("/index.php", sizeof("/index.php")); in PHP_METHOD()
748 (info = phar_get_entry_info(phar, entry, entry_len, NULL, 0)) == NULL) { in PHP_METHOD()
749 phar_do_404(phar, fname, fname_len, f404, f404_len, entry, entry_len); in PHP_METHOD()
773 ctr.line_len = spprintf((char **) &(ctr.line), 4096, "Location: %s%s", path_info, entry + 1); in PHP_METHOD()
775 ctr.line_len = spprintf((char **) &(ctr.line), 4096, "Location: %s%s", path_info, entry); in PHP_METHOD()
794 (info = phar_get_entry_info(phar, entry, entry_len, NULL, 0)) == NULL) { in PHP_METHOD()
795 phar_do_404(phar, fname, fname_len, f404, f404_len, entry, entry_len); in PHP_METHOD()
800 const char *ext = zend_memrchr(entry, '.', entry_len); in PHP_METHOD()
818 efree(entry); in PHP_METHOD()
835 efree(entry); in PHP_METHOD()
846 code = phar_file_type(&PHAR_G(mime_types), entry, &mime_type); in PHP_METHOD()
848 phar_file_action(phar, info, mime_type, code, entry, entry_len, fname, pt, ru, ru_len); in PHP_METHOD()
1100 char *fname, *alias = NULL, *error, *arch = NULL, *entry = NULL, *save_fname; in PHP_METHOD() local
1130 …if (SUCCESS == phar_split_fname(fname, fname_len, &arch, &arch_len, &entry, &entry_len, !is_data, … in PHP_METHOD()
1154 if (entry) { in PHP_METHOD()
1155 efree(entry); in PHP_METHOD()
1188 efree(entry); in PHP_METHOD()
1201 if (entry) { in PHP_METHOD()
1202 fname_len = spprintf(&fname, 0, "phar://%s%s", phar_data->fname, entry); in PHP_METHOD()
1203 efree(entry); in PHP_METHOD()
1278 char *fname, *error, *zname, *arch, *entry; in PHP_METHOD() local
1305 …", 7) && SUCCESS == phar_split_fname(zname, zname_len, &arch, &arch_len, &entry, &entry_len, 2, 0)… in PHP_METHOD()
1309 efree(entry); in PHP_METHOD()
1313 efree(entry); in PHP_METHOD()
1454 …len = spprintf(&fname, 0, "%s%c%s", ZSTR_VAL(test_str), DEFAULT_SLASH, intern->u.dir.entry.d_name); in phar_build()
1913 static int phar_copy_file_contents(phar_entry_info *entry, php_stream *fp) /* {{{ */ in phar_copy_file_contents() argument
1919 if (FAILURE == phar_open_entry_fp(entry, &error, 1)) { in phar_copy_file_contents()
1922 …phar archive \"%s\", unable to open entry \"%s\" contents: %s", entry->phar->fname, entry->filenam… in phar_copy_file_contents()
1926 …ert phar archive \"%s\", unable to open entry \"%s\" contents", entry->phar->fname, entry->filenam… in phar_copy_file_contents()
1932 phar_seek_efp(entry, 0, SEEK_SET, 0, 1); in phar_copy_file_contents()
1934 link = phar_get_link_source(entry); in phar_copy_file_contents()
1937 link = entry; in phar_copy_file_contents()
1942 …ert phar archive \"%s\", unable to copy entry \"%s\" contents", entry->phar->fname, entry->filenam… in phar_copy_file_contents()
1946 if (entry->fp_type == PHAR_MOD) { in phar_copy_file_contents()
1948 entry->cfp = entry->fp; in phar_copy_file_contents()
1949 entry->fp = NULL; in phar_copy_file_contents()
1953 entry->fp_type = PHAR_FP; in phar_copy_file_contents()
1954 entry->offset = offset; in phar_copy_file_contents()
2212 phar_entry_info *entry, newentry; in phar_convert_to_other() local
2256 ZEND_HASH_MAP_FOREACH_PTR(&source->manifest, entry) { in phar_convert_to_other()
2258 newentry = *entry; in phar_convert_to_other()
2286 newentry.tar_type = (entry->is_dir ? TAR_DIR : TAR_FILE); in phar_convert_to_other()
2595 phar_entry_info *entry; in PHP_METHOD() local
2614 …if (NULL != (entry = zend_hash_str_find_ptr(&phar_obj->archive->manifest, fname, (uint32_t) fname_… in PHP_METHOD()
2615 if (entry->is_deleted) { in PHP_METHOD()
2619 entry->is_deleted = 1; in PHP_METHOD()
2620 entry->is_modified = 1; in PHP_METHOD()
3103 phar_entry_info *entry = (phar_entry_info *)Z_PTR_P(zv); in phar_set_compression() local
3106 if (entry->is_deleted) { in phar_set_compression()
3110 entry->old_flags = entry->flags; in phar_set_compression()
3111 entry->flags &= ~PHAR_ENT_COMPRESSION_MASK; in phar_set_compression()
3112 entry->flags |= compress; in phar_set_compression()
3113 entry->is_modified = 1; in phar_set_compression()
3120 phar_entry_info *entry = (phar_entry_info *)Z_PTR_P(zv); in phar_test_compression() local
3122 if (entry->is_deleted) { in phar_test_compression()
3127 if (entry->flags & PHAR_ENT_COMPRESSED_BZ2) { in phar_test_compression()
3133 if (entry->flags & PHAR_ENT_COMPRESSED_GZ) { in phar_test_compression()
3494 phar_entry_info *entry; in PHP_METHOD() local
3503 …if (NULL != (entry = zend_hash_str_find_ptr(&phar_obj->archive->manifest, fname, (uint32_t) fname_… in PHP_METHOD()
3504 if (entry->is_deleted) { in PHP_METHOD()
3530 phar_entry_info *entry; in PHP_METHOD() local
3540 if (!(entry = phar_get_entry_info_dir(phar_obj->archive, fname, fname_len, 1, &error, 0))) { in PHP_METHOD()
3558 if (entry->is_temp_dir) { in PHP_METHOD()
3559 efree(entry->filename); in PHP_METHOD()
3560 efree(entry); in PHP_METHOD()
3744 phar_entry_info *entry; in PHP_METHOD() local
3758 …if (NULL != (entry = zend_hash_str_find_ptr(&phar_obj->archive->manifest, fname, (uint32_t) fname_… in PHP_METHOD()
3759 if (entry->is_deleted) { in PHP_METHOD()
3770 entry = zend_hash_str_find_ptr(&phar_obj->archive->manifest, fname, (uint32_t) fname_len); in PHP_METHOD()
3772 entry->is_modified = 0; in PHP_METHOD()
3773 entry->is_deleted = 1; in PHP_METHOD()
4090 static int phar_extract_file(bool overwrite, phar_entry_info *entry, char *dest, size_t dest_len, c… in phar_extract_file() argument
4102 if (entry->is_mounted) { in phar_extract_file()
4107 …if (entry->filename_len >= sizeof(".phar")-1 && !memcmp(entry->filename, ".phar", sizeof(".phar")-… in phar_extract_file()
4115 if (virtual_file_ex(&new_state, entry->filename, NULL, CWD_EXPAND) != 0 || in phar_extract_file()
4117 if (EINVAL == errno && entry->filename_len > 50) { in phar_extract_file()
4118 char *tmp = estrndup(entry->filename, 50); in phar_extract_file()
4122 spprintf(error, 4096, "Cannot extract \"%s\", internal error", entry->filename); in phar_extract_file()
4148 if (entry->filename_len > 50) { in phar_extract_file()
4149 tmp = estrndup(entry->filename, 50); in phar_extract_file()
4153 …ract \"%s\" to \"%s...\", extracted filename is too long for filesystem", entry->filename, fullpat… in phar_extract_file()
4161 spprintf(error, 4096, "Cannot extract \"%s\", internal error", entry->filename); in phar_extract_file()
4168 … extract \"%s\" to \"%s\", openbasedir/safe mode restrictions in effect", entry->filename, fullpat… in phar_extract_file()
4176 …spprintf(error, 4096, "Cannot extract \"%s\" to \"%s\", path already exists", entry->filename, ful… in phar_extract_file()
4192 if (entry->is_dir) { in phar_extract_file()
4193 …if (!php_stream_mkdir(fullpath, entry->flags & PHAR_ENT_PERM_MASK, PHP_STREAM_MKDIR_RECURSIVE, NU… in phar_extract_file()
4194 …spprintf(error, 4096, "Cannot extract \"%s\", could not create directory \"%s\"", entry->filename,… in phar_extract_file()
4201 …spprintf(error, 4096, "Cannot extract \"%s\", could not create directory \"%s\"", entry->filename,… in phar_extract_file()
4218 if (entry->is_dir) { in phar_extract_file()
4226 …spprintf(error, 4096, "Cannot extract \"%s\", could not open for writing \"%s\"", entry->filename,… in phar_extract_file()
4231 …if ((phar_get_fp_type(entry) == PHAR_FP && (entry->flags & PHAR_ENT_COMPRESSION_MASK)) || !phar_ge… in phar_extract_file()
4232 if (FAILURE == phar_open_entry_fp(entry, error, 1)) { in phar_extract_file()
4234 …nnot extract \"%s\" to \"%s\", unable to open internal file pointer: %s", entry->filename, fullpat… in phar_extract_file()
4236 … "Cannot extract \"%s\" to \"%s\", unable to open internal file pointer", entry->filename, fullpat… in phar_extract_file()
4244 if (FAILURE == phar_seek_efp(entry, 0, SEEK_SET, 0, 0)) { in phar_extract_file()
4245 … "Cannot extract \"%s\" to \"%s\", unable to seek internal file pointer", entry->filename, fullpat… in phar_extract_file()
4251 …if (SUCCESS != php_stream_copy_to_stream_ex(phar_get_efp(entry, 0), fp, entry->uncompressed_filesi… in phar_extract_file()
4252 …spprintf(error, 4096, "Cannot extract \"%s\" to \"%s\", copying contents failed", entry->filename,… in phar_extract_file()
4259 mode = (mode_t) entry->flags & PHAR_ENT_PERM_MASK; in phar_extract_file()
4262 …spprintf(error, 4096, "Cannot extract \"%s\" to \"%s\", setting file permissions failed", entry->f… in phar_extract_file()
4274 phar_entry_info *entry; in extract_helper() local
4278 ZEND_HASH_MAP_FOREACH_PTR(&archive->manifest, entry) { in extract_helper()
4279 if (FAILURE == phar_extract_file(overwrite, entry, pathto, pathto_len, error)) return -1; in extract_helper()
4284 ZEND_HASH_MAP_FOREACH_PTR(&archive->manifest, entry) { in extract_helper()
4285 if (0 != strncmp(ZSTR_VAL(search), entry->filename, ZSTR_LEN(search))) continue; in extract_helper()
4286 if (FAILURE == phar_extract_file(overwrite, entry, pathto, pathto_len, error)) return -1; in extract_helper()
4291 entry = zend_hash_find_ptr(&archive->manifest, search); in extract_helper()
4292 if (NULL == entry) return 0; in extract_helper()
4293 if (FAILURE == phar_extract_file(overwrite, entry, pathto, pathto_len, error)) return -1; in extract_helper()
4408 char *fname, *arch, *entry, *error; in PHP_METHOD() local
4422 if (entry_obj->entry) { in PHP_METHOD()
4427 …e, "phar://", 7) || phar_split_fname(fname, fname_len, &arch, &arch_len, &entry, &entry_len, 2, 0)… in PHP_METHOD()
4435 efree(entry); in PHP_METHOD()
4447 if ((entry_info = phar_get_entry_info_dir(phar_data, entry, entry_len, 1, &error, 1)) == NULL) { in PHP_METHOD()
4449 …"Cannot access phar file entry '%s' in archive '%s'%s%s", entry, arch, error ? ", " : "", error ? … in PHP_METHOD()
4451 efree(entry); in PHP_METHOD()
4456 efree(entry); in PHP_METHOD()
4458 entry_obj->entry = entry_info; in PHP_METHOD()
4472 if (!entry_obj->entry) { \
4488 if (entry_obj->entry && entry_obj->entry->is_temp_dir) { in PHP_METHOD()
4489 if (entry_obj->entry->filename) { in PHP_METHOD()
4490 efree(entry_obj->entry->filename); in PHP_METHOD()
4491 entry_obj->entry->filename = NULL; in PHP_METHOD()
4494 efree(entry_obj->entry); in PHP_METHOD()
4495 entry_obj->entry = NULL; in PHP_METHOD()
4509 RETURN_LONG(entry_obj->entry->compressed_filesize); in PHP_METHOD()
4526 RETURN_BOOL(entry_obj->entry->flags & PHAR_ENT_COMPRESSION_MASK); in PHP_METHOD()
4531 RETURN_BOOL(entry_obj->entry->flags & PHAR_ENT_COMPRESSION_MASK); in PHP_METHOD()
4533 RETURN_BOOL(entry_obj->entry->flags & PHAR_ENT_COMPRESSED_GZ); in PHP_METHOD()
4535 RETURN_BOOL(entry_obj->entry->flags & PHAR_ENT_COMPRESSED_BZ2); in PHP_METHOD()
4552 if (entry_obj->entry->is_dir) { in PHP_METHOD()
4558 if (entry_obj->entry->is_crc_checked) { in PHP_METHOD()
4559 RETURN_LONG(entry_obj->entry->crc32); in PHP_METHOD()
4576 RETURN_BOOL(entry_obj->entry->is_crc_checked); in PHP_METHOD()
4589 RETURN_LONG(entry_obj->entry->flags & ~(PHAR_ENT_PERM_MASK|PHAR_ENT_COMPRESSION_MASK)); in PHP_METHOD()
4605 if (entry_obj->entry->is_temp_dir) { in PHP_METHOD()
4607 …orary directory (not an actual entry in the archive), cannot chmod", entry_obj->entry->filename); \ in PHP_METHOD()
4611 if (PHAR_G(readonly) && !entry_obj->entry->phar->is_data) { in PHP_METHOD()
4612 …n phar \"%s\", write operations are prohibited", entry_obj->entry->filename, entry_obj->entry->pha… in PHP_METHOD()
4616 if (entry_obj->entry->is_persistent) { in PHP_METHOD()
4617 phar_archive_data *phar = entry_obj->entry->phar; in PHP_METHOD()
4624 …entry_obj->entry = zend_hash_str_find_ptr(&phar->manifest, entry_obj->entry->filename, entry_obj-> in PHP_METHOD()
4627 entry_obj->entry->flags &= ~PHAR_ENT_PERM_MASK; in PHP_METHOD()
4629 entry_obj->entry->flags |= perms; in PHP_METHOD()
4630 entry_obj->entry->old_flags = entry_obj->entry->flags; in PHP_METHOD()
4631 entry_obj->entry->phar->is_modified = 1; in PHP_METHOD()
4632 entry_obj->entry->is_modified = 1; in PHP_METHOD()
4646 phar_flush(entry_obj->entry->phar, 0, 0, 0, &error); in PHP_METHOD()
4664 …RETURN_BOOL(phar_metadata_tracker_has_data(&entry_obj->entry->metadata_tracker, entry_obj->entry->… in PHP_METHOD()
4681 tracker = &entry_obj->entry->metadata_tracker; in PHP_METHOD()
4682 if (phar_metadata_tracker_has_data(tracker, entry_obj->entry->is_persistent)) { in PHP_METHOD()
4683 …phar_metadata_tracker_unserialize_or_copy(tracker, return_value, entry_obj->entry->is_persistent, … in PHP_METHOD()
4700 if (PHAR_G(readonly) && !entry_obj->entry->phar->is_data) { in PHP_METHOD()
4705 if (entry_obj->entry->is_temp_dir) { in PHP_METHOD()
4711 if (entry_obj->entry->is_persistent) { in PHP_METHOD()
4712 phar_archive_data *phar = entry_obj->entry->phar; in PHP_METHOD()
4719 …entry_obj->entry = zend_hash_str_find_ptr(&phar->manifest, entry_obj->entry->filename, entry_obj-> in PHP_METHOD()
4720 ZEND_ASSERT(!entry_obj->entry->is_persistent); /* Should no longer be persistent */ in PHP_METHOD()
4723 …if (serialize_metadata_or_throw(&entry_obj->entry->metadata_tracker, entry_obj->entry->is_persiste… in PHP_METHOD()
4727 entry_obj->entry->is_modified = 1; in PHP_METHOD()
4728 entry_obj->entry->phar->is_modified = 1; in PHP_METHOD()
4729 phar_flush(entry_obj->entry->phar, 0, 0, 0, &error); in PHP_METHOD()
4749 if (PHAR_G(readonly) && !entry_obj->entry->phar->is_data) { in PHP_METHOD()
4754 if (entry_obj->entry->is_temp_dir) { in PHP_METHOD()
4760 …if (phar_metadata_tracker_has_data(&entry_obj->entry->metadata_tracker, entry_obj->entry->is_persi… in PHP_METHOD()
4761 if (entry_obj->entry->is_persistent) { in PHP_METHOD()
4762 phar_archive_data *phar = entry_obj->entry->phar; in PHP_METHOD()
4769 …entry_obj->entry = zend_hash_str_find_ptr(&phar->manifest, entry_obj->entry->filename, entry_obj-> in PHP_METHOD()
4772 phar_metadata_tracker_free(&entry_obj->entry->metadata_tracker, entry_obj->entry->is_persistent); in PHP_METHOD()
4773 entry_obj->entry->is_modified = 1; in PHP_METHOD()
4774 entry_obj->entry->phar->is_modified = 1; in PHP_METHOD()
4776 phar_flush(entry_obj->entry->phar, 0, 0, 0, &error); in PHP_METHOD()
4806 if (entry_obj->entry->is_dir) { in PHP_METHOD()
4808 …contents, \"%s\" in phar \"%s\" is a directory", entry_obj->entry->filename, entry_obj->entry->pha… in PHP_METHOD()
4812 link = phar_get_link_source(entry_obj->entry); in PHP_METHOD()
4815 link = entry_obj->entry; in PHP_METHOD()
4820 …t retrieve contents, \"%s\" in phar \"%s\": %s", entry_obj->entry->filename, entry_obj->entry->pha… in PHP_METHOD()
4827 …not retrieve contents of \"%s\" in phar \"%s\"", entry_obj->entry->filename, entry_obj->entry->pha… in PHP_METHOD()
4853 if (entry_obj->entry->is_tar) { in PHP_METHOD()
4859 if (entry_obj->entry->is_dir) { in PHP_METHOD()
4865 if (PHAR_G(readonly) && !entry_obj->entry->phar->is_data) { in PHP_METHOD()
4871 if (entry_obj->entry->is_deleted) { in PHP_METHOD()
4877 if (entry_obj->entry->is_persistent) { in PHP_METHOD()
4878 phar_archive_data *phar = entry_obj->entry->phar; in PHP_METHOD()
4885 …entry_obj->entry = zend_hash_str_find_ptr(&phar->manifest, entry_obj->entry->filename, entry_obj-> in PHP_METHOD()
4889 if (entry_obj->entry->flags & PHAR_ENT_COMPRESSED_GZ) { in PHP_METHOD()
4893 if ((entry_obj->entry->flags & PHAR_ENT_COMPRESSED_BZ2) != 0) { in PHP_METHOD()
4901 if (SUCCESS != phar_open_entry_fp(entry_obj->entry, &error, 1)) { in PHP_METHOD()
4903 …phar \"%s\" in order to compress with gzip: %s", entry_obj->entry->filename, entry_obj->entry->pha… in PHP_METHOD()
4915 entry_obj->entry->old_flags = entry_obj->entry->flags; in PHP_METHOD()
4916 entry_obj->entry->flags &= ~PHAR_ENT_COMPRESSION_MASK; in PHP_METHOD()
4917 entry_obj->entry->flags |= PHAR_ENT_COMPRESSED_GZ; in PHP_METHOD()
4920 if (entry_obj->entry->flags & PHAR_ENT_COMPRESSED_BZ2) { in PHP_METHOD()
4924 if ((entry_obj->entry->flags & PHAR_ENT_COMPRESSED_GZ) != 0) { in PHP_METHOD()
4932 if (SUCCESS != phar_open_entry_fp(entry_obj->entry, &error, 1)) { in PHP_METHOD()
4934 …har \"%s\" in order to compress with bzip2: %s", entry_obj->entry->filename, entry_obj->entry->pha… in PHP_METHOD()
4945 entry_obj->entry->old_flags = entry_obj->entry->flags; in PHP_METHOD()
4946 entry_obj->entry->flags &= ~PHAR_ENT_COMPRESSION_MASK; in PHP_METHOD()
4947 entry_obj->entry->flags |= PHAR_ENT_COMPRESSED_BZ2; in PHP_METHOD()
4954 entry_obj->entry->phar->is_modified = 1; in PHP_METHOD()
4955 entry_obj->entry->is_modified = 1; in PHP_METHOD()
4956 phar_flush(entry_obj->entry->phar, 0, 0, 0, &error); in PHP_METHOD()
4980 if (entry_obj->entry->is_dir) { in PHP_METHOD()
4986 if ((entry_obj->entry->flags & PHAR_ENT_COMPRESSION_MASK) == 0) { in PHP_METHOD()
4990 if (PHAR_G(readonly) && !entry_obj->entry->phar->is_data) { in PHP_METHOD()
4996 if (entry_obj->entry->is_deleted) { in PHP_METHOD()
5002 if ((entry_obj->entry->flags & PHAR_ENT_COMPRESSED_GZ) != 0 && !PHAR_G(has_zlib)) { in PHP_METHOD()
5008 if ((entry_obj->entry->flags & PHAR_ENT_COMPRESSED_BZ2) != 0 && !PHAR_G(has_bz2)) { in PHP_METHOD()
5014 if (entry_obj->entry->is_persistent) { in PHP_METHOD()
5015 phar_archive_data *phar = entry_obj->entry->phar; in PHP_METHOD()
5022 …entry_obj->entry = zend_hash_str_find_ptr(&phar->manifest, entry_obj->entry->filename, entry_obj-> in PHP_METHOD()
5024 switch (entry_obj->entry->flags & PHAR_ENT_COMPRESSION_MASK) { in PHP_METHOD()
5037 if (SUCCESS != phar_open_entry_fp(entry_obj->entry, &error, 1)) { in PHP_METHOD()
5039 …le \"%s\" in phar \"%s\": %s", compression_type, entry_obj->entry->filename, entry_obj->entry->pha… in PHP_METHOD()
5044 entry_obj->entry->old_flags = entry_obj->entry->flags; in PHP_METHOD()
5045 entry_obj->entry->flags &= ~PHAR_ENT_COMPRESSION_MASK; in PHP_METHOD()
5046 entry_obj->entry->phar->is_modified = 1; in PHP_METHOD()
5047 entry_obj->entry->is_modified = 1; in PHP_METHOD()
5048 phar_flush(entry_obj->entry->phar, 0, 0, 0, &error); in PHP_METHOD()