Lines Matching refs:entry

57 static void phar_mung_server_vars(char *fname, char *entry, size_t entry_len, char *basename, size_…  in phar_mung_server_vars()  argument
77 if (code > (size_t)entry_len && !memcmp(path_info, entry, entry_len)) { in phar_mung_server_vars()
85 zend_string *str = strpprintf(4096, "phar://%s%s", fname, entry); in phar_mung_server_vars()
125 ZVAL_STRINGL(stuff, entry, entry_len); in phar_mung_server_vars()
132 zend_string *str = strpprintf(4096, "phar://%s%s", fname, entry); in phar_mung_server_vars()
143 …chive_data *phar, phar_entry_info *info, char *mime_type, int code, char *entry, size_t entry_len,… in phar_file_action() argument
162 if (entry[0] == '/') { in phar_file_action()
163 spprintf(&name, 4096, "phar://%s%s", arch, entry); in phar_file_action()
165 spprintf(&name, 4096, "phar://%s/%s", arch, entry); in phar_file_action()
221 phar_mung_server_vars(arch, entry, entry_len, basename, ru_len); in phar_file_action()
225 if (entry[0] == '/') { in phar_file_action()
226 name_len = spprintf(&name, 4096, "phar://%s%s", arch, entry); in phar_file_action()
228 name_len = spprintf(&name, 4096, "phar://%s/%s", arch, entry); in phar_file_action()
238 if ((cwd = zend_memrchr(entry, '/', entry_len))) { in phar_file_action()
240 if (entry == cwd) { in phar_file_action()
244 } else if (entry[0] == '/') { in phar_file_action()
245 PHAR_G(cwd_len) = (cwd - (entry + 1)); in phar_file_action()
246 PHAR_G(cwd) = estrndup(entry + 1, PHAR_G(cwd_len)); in phar_file_action()
248 PHAR_G(cwd_len) = (cwd - entry); in phar_file_action()
249 PHAR_G(cwd) = estrndup(entry, PHAR_G(cwd_len)); in phar_file_action()
303 static void phar_do_403(char *entry, size_t entry_len) /* {{{ */ in phar_do_403() argument
317 … *phar, char *fname, size_t fname_len, char *f404, size_t f404_len, char *entry, size_t entry_len)… in phar_do_404() argument
344 static void phar_postprocess_ru_web(char *fname, size_t fname_len, char **entry, size_t *entry_len,… in phar_postprocess_ru_web() argument
346 char *e = *entry + 1, *u = NULL, *u1 = NULL, *saveu = NULL; in phar_postprocess_ru_web()
404 char *arch, *entry; in PHP_METHOD() local
419 …&& SUCCESS == phar_split_fname(ZSTR_VAL(fname), ZSTR_LEN(fname), &arch, &arch_len, &entry, &entry_… in PHP_METHOD()
421 efree(entry); in PHP_METHOD()
445 char *fname, *arch = NULL, *entry = NULL, *path, *actual; in PHP_METHOD() local
477 …", 7) && SUCCESS == phar_split_fname(fname, fname_len, &arch, &arch_len, &entry, &entry_len, 2, 0)… in PHP_METHOD()
478 efree(entry); in PHP_METHOD()
479 entry = NULL; in PHP_METHOD()
507 if (entry && path == entry) { in PHP_METHOD()
508 efree(entry); in PHP_METHOD()
524 …} else if (SUCCESS == phar_split_fname(path, path_len, &arch, &arch_len, &entry, &entry_len, 2, 0)… in PHP_METHOD()
525 path = entry; in PHP_METHOD()
556 char *fname, *path_info, *mime_type = NULL, *entry, *pt; in PHP_METHOD() local
635 entry = estrndup(Z_STRVAL_P(z_path_info), entry_len); in PHP_METHOD()
638 memcpy(path_info + Z_STRLEN_P(z_script_name), entry, entry_len + 1); in PHP_METHOD()
642 entry = estrndup("", 0); in PHP_METHOD()
660 entry = path_info; in PHP_METHOD()
661 entry_len = strlen(entry); in PHP_METHOD()
667 entry = estrndup("", 0); in PHP_METHOD()
684 entry = estrndup(pt + (fname_len - (basename - fname)), entry_len); in PHP_METHOD()
693 ZVAL_STRINGL(&params, entry, entry_len); in PHP_METHOD()
713 efree(entry); in PHP_METHOD()
714 entry = estrndup(Z_STRVAL_P(rewrite_fci.retval), Z_STRLEN_P(rewrite_fci.retval)); in PHP_METHOD()
719 phar_do_403(entry, entry_len); in PHP_METHOD()
735 efree(entry); in PHP_METHOD()
745 phar_postprocess_ru_web(fname, fname_len, &entry, &entry_len, &ru, &ru_len); in PHP_METHOD()
748 if (!entry_len || (entry_len == 1 && entry[0] == '/')) { in PHP_METHOD()
749 efree(entry); in PHP_METHOD()
752 entry = index_php; in PHP_METHOD()
754 if (entry[0] != '/') { in PHP_METHOD()
755 spprintf(&entry, 0, "/%s", index_php); in PHP_METHOD()
760 entry = estrndup("/index.php", sizeof("/index.php")); in PHP_METHOD()
765 (info = phar_get_entry_info(phar, entry, entry_len, NULL, 0)) == NULL) { in PHP_METHOD()
766 phar_do_404(phar, fname, fname_len, f404, f404_len, entry, entry_len); in PHP_METHOD()
790 ctr.line_len = spprintf((char **) &(ctr.line), 4096, "Location: %s%s", path_info, entry + 1); in PHP_METHOD()
792 ctr.line_len = spprintf((char **) &(ctr.line), 4096, "Location: %s%s", path_info, entry); in PHP_METHOD()
811 (info = phar_get_entry_info(phar, entry, entry_len, NULL, 0)) == NULL) { in PHP_METHOD()
812 phar_do_404(phar, fname, fname_len, f404, f404_len, entry, entry_len); in PHP_METHOD()
817 const char *ext = zend_memrchr(entry, '.', entry_len); in PHP_METHOD()
835 efree(entry); in PHP_METHOD()
852 efree(entry); in PHP_METHOD()
863 code = phar_file_type(&PHAR_G(mime_types), entry, &mime_type); in PHP_METHOD()
865 phar_file_action(phar, info, mime_type, code, entry, entry_len, fname, pt, ru, ru_len); in PHP_METHOD()
1117 char *fname, *alias = NULL, *error, *arch = NULL, *entry = NULL, *save_fname; in PHP_METHOD() local
1147 …if (SUCCESS == phar_split_fname(fname, fname_len, &arch, &arch_len, &entry, &entry_len, !is_data, … in PHP_METHOD()
1171 if (entry) { in PHP_METHOD()
1172 efree(entry); in PHP_METHOD()
1205 efree(entry); in PHP_METHOD()
1218 if (entry) { in PHP_METHOD()
1219 fname_len = spprintf(&fname, 0, "phar://%s%s", phar_data->fname, entry); in PHP_METHOD()
1220 efree(entry); in PHP_METHOD()
1295 char *fname, *error, *arch, *entry; in PHP_METHOD() local
1324 …ame(ZSTR_VAL(zend_file_name), ZSTR_LEN(zend_file_name), &arch, &arch_len, &entry, &entry_len, 2, 0) in PHP_METHOD()
1329 efree(entry); in PHP_METHOD()
1333 efree(entry); in PHP_METHOD()
1474 …len = spprintf(&fname, 0, "%s%c%s", ZSTR_VAL(test_str), DEFAULT_SLASH, intern->u.dir.entry.d_name); in phar_build()
1933 static zend_result phar_copy_file_contents(phar_entry_info *entry, php_stream *fp) /* {{{ */ in phar_copy_file_contents() argument
1939 if (FAILURE == phar_open_entry_fp(entry, &error, 1)) { in phar_copy_file_contents()
1942 …phar archive \"%s\", unable to open entry \"%s\" contents: %s", entry->phar->fname, entry->filenam… in phar_copy_file_contents()
1946 …ert phar archive \"%s\", unable to open entry \"%s\" contents", entry->phar->fname, entry->filenam… in phar_copy_file_contents()
1952 phar_seek_efp(entry, 0, SEEK_SET, 0, 1); in phar_copy_file_contents()
1954 link = phar_get_link_source(entry); in phar_copy_file_contents()
1957 link = entry; in phar_copy_file_contents()
1962 …ert phar archive \"%s\", unable to copy entry \"%s\" contents", entry->phar->fname, entry->filenam… in phar_copy_file_contents()
1966 if (entry->fp_type == PHAR_MOD) { in phar_copy_file_contents()
1968 entry->cfp = entry->fp; in phar_copy_file_contents()
1969 entry->fp = NULL; in phar_copy_file_contents()
1973 entry->fp_type = PHAR_FP; in phar_copy_file_contents()
1974 entry->offset = offset; in phar_copy_file_contents()
2234 phar_entry_info *entry, newentry; in phar_convert_to_other() local
2278 ZEND_HASH_MAP_FOREACH_PTR(&source->manifest, entry) { in phar_convert_to_other()
2280 newentry = *entry; in phar_convert_to_other()
2308 newentry.tar_type = (entry->is_dir ? TAR_DIR : TAR_FILE); in phar_convert_to_other()
2616 phar_entry_info *entry; in PHP_METHOD() local
2634 if (NULL != (entry = zend_hash_find_ptr(&phar_obj->archive->manifest, file_name))) { in PHP_METHOD()
2635 if (entry->is_deleted) { in PHP_METHOD()
2639 entry->is_deleted = 1; in PHP_METHOD()
2640 entry->is_modified = 1; in PHP_METHOD()
3135 phar_entry_info *entry = (phar_entry_info *)Z_PTR_P(zv); in phar_set_compression() local
3138 if (entry->is_deleted) { in phar_set_compression()
3142 entry->old_flags = entry->flags; in phar_set_compression()
3143 entry->flags &= ~PHAR_ENT_COMPRESSION_MASK; in phar_set_compression()
3144 entry->flags |= compress; in phar_set_compression()
3145 entry->is_modified = 1; in phar_set_compression()
3152 phar_entry_info *entry = (phar_entry_info *)Z_PTR_P(zv); in phar_test_compression() local
3154 if (entry->is_deleted) { in phar_test_compression()
3159 if (entry->flags & PHAR_ENT_COMPRESSED_BZ2) { in phar_test_compression()
3165 if (entry->flags & PHAR_ENT_COMPRESSED_GZ) { in phar_test_compression()
3523 phar_entry_info *entry; in PHP_METHOD() local
3532 if (NULL != (entry = zend_hash_find_ptr(&phar_obj->archive->manifest, file_name))) { in PHP_METHOD()
3533 if (entry->is_deleted) { in PHP_METHOD()
3558 phar_entry_info *entry; in PHP_METHOD() local
3568 …if (!(entry = phar_get_entry_info_dir(phar_obj->archive, ZSTR_VAL(file_name), ZSTR_LEN(file_name),… in PHP_METHOD()
3586 if (entry->is_temp_dir) { in PHP_METHOD()
3587 efree(entry->filename); in PHP_METHOD()
3588 efree(entry); in PHP_METHOD()
3785 phar_entry_info *entry; in PHP_METHOD() local
3799 if (NULL != (entry = zend_hash_find_ptr(&phar_obj->archive->manifest, file_name))) { in PHP_METHOD()
3800 if (entry->is_deleted) { in PHP_METHOD()
3811 entry = zend_hash_find_ptr(&phar_obj->archive->manifest, file_name); in PHP_METHOD()
3813 entry->is_modified = 0; in PHP_METHOD()
3814 entry->is_deleted = 1; in PHP_METHOD()
4129 static zend_result phar_extract_file(bool overwrite, phar_entry_info *entry, char *dest, size_t des… in phar_extract_file() argument
4141 if (entry->is_mounted) { in phar_extract_file()
4146 …if (entry->filename_len >= sizeof(".phar")-1 && !memcmp(entry->filename, ".phar", sizeof(".phar")-… in phar_extract_file()
4154 if (virtual_file_ex(&new_state, entry->filename, NULL, CWD_EXPAND) != 0 || in phar_extract_file()
4156 if (EINVAL == errno && entry->filename_len > 50) { in phar_extract_file()
4157 char *tmp = estrndup(entry->filename, 50); in phar_extract_file()
4161 spprintf(error, 4096, "Cannot extract \"%s\", internal error", entry->filename); in phar_extract_file()
4187 if (entry->filename_len > 50) { in phar_extract_file()
4188 tmp = estrndup(entry->filename, 50); in phar_extract_file()
4192 …ract \"%s\" to \"%s...\", extracted filename is too long for filesystem", entry->filename, fullpat… in phar_extract_file()
4200 spprintf(error, 4096, "Cannot extract \"%s\", internal error", entry->filename); in phar_extract_file()
4207 … extract \"%s\" to \"%s\", openbasedir/safe mode restrictions in effect", entry->filename, fullpat… in phar_extract_file()
4215 …spprintf(error, 4096, "Cannot extract \"%s\" to \"%s\", path already exists", entry->filename, ful… in phar_extract_file()
4231 if (entry->is_dir) { in phar_extract_file()
4232 …if (!php_stream_mkdir(fullpath, entry->flags & PHAR_ENT_PERM_MASK, PHP_STREAM_MKDIR_RECURSIVE, NU… in phar_extract_file()
4233 …spprintf(error, 4096, "Cannot extract \"%s\", could not create directory \"%s\"", entry->filename,… in phar_extract_file()
4240 …spprintf(error, 4096, "Cannot extract \"%s\", could not create directory \"%s\"", entry->filename,… in phar_extract_file()
4257 if (entry->is_dir) { in phar_extract_file()
4265 …spprintf(error, 4096, "Cannot extract \"%s\", could not open for writing \"%s\"", entry->filename,… in phar_extract_file()
4270 …if ((phar_get_fp_type(entry) == PHAR_FP && (entry->flags & PHAR_ENT_COMPRESSION_MASK)) || !phar_ge… in phar_extract_file()
4271 if (FAILURE == phar_open_entry_fp(entry, error, 1)) { in phar_extract_file()
4273 …nnot extract \"%s\" to \"%s\", unable to open internal file pointer: %s", entry->filename, fullpat… in phar_extract_file()
4275 … "Cannot extract \"%s\" to \"%s\", unable to open internal file pointer", entry->filename, fullpat… in phar_extract_file()
4283 if (-1 == phar_seek_efp(entry, 0, SEEK_SET, 0, 0)) { in phar_extract_file()
4284 … "Cannot extract \"%s\" to \"%s\", unable to seek internal file pointer", entry->filename, fullpat… in phar_extract_file()
4290 …if (SUCCESS != php_stream_copy_to_stream_ex(phar_get_efp(entry, 0), fp, entry->uncompressed_filesi… in phar_extract_file()
4291 …spprintf(error, 4096, "Cannot extract \"%s\" to \"%s\", copying contents failed", entry->filename,… in phar_extract_file()
4298 mode = (mode_t) entry->flags & PHAR_ENT_PERM_MASK; in phar_extract_file()
4301 …spprintf(error, 4096, "Cannot extract \"%s\" to \"%s\", setting file permissions failed", entry->f… in phar_extract_file()
4313 phar_entry_info *entry; in extract_helper() local
4317 ZEND_HASH_MAP_FOREACH_PTR(&archive->manifest, entry) { in extract_helper()
4318 if (FAILURE == phar_extract_file(overwrite, entry, pathto, pathto_len, error)) return -1; in extract_helper()
4323 ZEND_HASH_MAP_FOREACH_PTR(&archive->manifest, entry) { in extract_helper()
4324 if (0 != strncmp(ZSTR_VAL(search), entry->filename, ZSTR_LEN(search))) continue; in extract_helper()
4325 if (FAILURE == phar_extract_file(overwrite, entry, pathto, pathto_len, error)) return -1; in extract_helper()
4330 entry = zend_hash_find_ptr(&archive->manifest, search); in extract_helper()
4331 if (NULL == entry) return 0; in extract_helper()
4332 if (FAILURE == phar_extract_file(overwrite, entry, pathto, pathto_len, error)) return -1; in extract_helper()
4447 char *fname, *arch, *entry, *error; in PHP_METHOD() local
4461 if (entry_obj->entry) { in PHP_METHOD()
4466 …e, "phar://", 7) || phar_split_fname(fname, fname_len, &arch, &arch_len, &entry, &entry_len, 2, 0)… in PHP_METHOD()
4474 efree(entry); in PHP_METHOD()
4486 if ((entry_info = phar_get_entry_info_dir(phar_data, entry, entry_len, 1, &error, 1)) == NULL) { in PHP_METHOD()
4488 …"Cannot access phar file entry '%s' in archive '%s'%s%s", entry, arch, error ? ", " : "", error ? … in PHP_METHOD()
4490 efree(entry); in PHP_METHOD()
4495 efree(entry); in PHP_METHOD()
4497 entry_obj->entry = entry_info; in PHP_METHOD()
4511 if (!entry_obj->entry) { \
4527 if (entry_obj->entry && entry_obj->entry->is_temp_dir) { in PHP_METHOD()
4528 if (entry_obj->entry->filename) { in PHP_METHOD()
4529 efree(entry_obj->entry->filename); in PHP_METHOD()
4530 entry_obj->entry->filename = NULL; in PHP_METHOD()
4533 efree(entry_obj->entry); in PHP_METHOD()
4534 entry_obj->entry = NULL; in PHP_METHOD()
4548 RETURN_LONG(entry_obj->entry->compressed_filesize); in PHP_METHOD()
4565 RETURN_BOOL(entry_obj->entry->flags & PHAR_ENT_COMPRESSION_MASK); in PHP_METHOD()
4570 RETURN_BOOL(entry_obj->entry->flags & PHAR_ENT_COMPRESSION_MASK); in PHP_METHOD()
4572 RETURN_BOOL(entry_obj->entry->flags & PHAR_ENT_COMPRESSED_GZ); in PHP_METHOD()
4574 RETURN_BOOL(entry_obj->entry->flags & PHAR_ENT_COMPRESSED_BZ2); in PHP_METHOD()
4591 if (entry_obj->entry->is_dir) { in PHP_METHOD()
4597 if (entry_obj->entry->is_crc_checked) { in PHP_METHOD()
4598 RETURN_LONG(entry_obj->entry->crc32); in PHP_METHOD()
4615 RETURN_BOOL(entry_obj->entry->is_crc_checked); in PHP_METHOD()
4628 RETURN_LONG(entry_obj->entry->flags & ~(PHAR_ENT_PERM_MASK|PHAR_ENT_COMPRESSION_MASK)); in PHP_METHOD()
4644 if (entry_obj->entry->is_temp_dir) { in PHP_METHOD()
4646 …orary directory (not an actual entry in the archive), cannot chmod", entry_obj->entry->filename); \ in PHP_METHOD()
4650 if (PHAR_G(readonly) && !entry_obj->entry->phar->is_data) { in PHP_METHOD()
4651 …n phar \"%s\", write operations are prohibited", entry_obj->entry->filename, entry_obj->entry->pha… in PHP_METHOD()
4655 if (entry_obj->entry->is_persistent) { in PHP_METHOD()
4656 phar_archive_data *phar = entry_obj->entry->phar; in PHP_METHOD()
4663 …entry_obj->entry = zend_hash_str_find_ptr(&phar->manifest, entry_obj->entry->filename, entry_obj-> in PHP_METHOD()
4666 entry_obj->entry->flags &= ~PHAR_ENT_PERM_MASK; in PHP_METHOD()
4668 entry_obj->entry->flags |= perms; in PHP_METHOD()
4669 entry_obj->entry->old_flags = entry_obj->entry->flags; in PHP_METHOD()
4670 entry_obj->entry->phar->is_modified = 1; in PHP_METHOD()
4671 entry_obj->entry->is_modified = 1; in PHP_METHOD()
4685 phar_flush(entry_obj->entry->phar, &error); in PHP_METHOD()
4703 …RETURN_BOOL(phar_metadata_tracker_has_data(&entry_obj->entry->metadata_tracker, entry_obj->entry->… in PHP_METHOD()
4720 tracker = &entry_obj->entry->metadata_tracker; in PHP_METHOD()
4721 if (phar_metadata_tracker_has_data(tracker, entry_obj->entry->is_persistent)) { in PHP_METHOD()
4722 …phar_metadata_tracker_unserialize_or_copy(tracker, return_value, entry_obj->entry->is_persistent, … in PHP_METHOD()
4739 if (PHAR_G(readonly) && !entry_obj->entry->phar->is_data) { in PHP_METHOD()
4744 if (entry_obj->entry->is_temp_dir) { in PHP_METHOD()
4750 if (entry_obj->entry->is_persistent) { in PHP_METHOD()
4751 phar_archive_data *phar = entry_obj->entry->phar; in PHP_METHOD()
4758 …entry_obj->entry = zend_hash_str_find_ptr(&phar->manifest, entry_obj->entry->filename, entry_obj-> in PHP_METHOD()
4759 ZEND_ASSERT(!entry_obj->entry->is_persistent); /* Should no longer be persistent */ in PHP_METHOD()
4762 …if (serialize_metadata_or_throw(&entry_obj->entry->metadata_tracker, entry_obj->entry->is_persiste… in PHP_METHOD()
4766 entry_obj->entry->is_modified = 1; in PHP_METHOD()
4767 entry_obj->entry->phar->is_modified = 1; in PHP_METHOD()
4768 phar_flush(entry_obj->entry->phar, &error); in PHP_METHOD()
4788 if (PHAR_G(readonly) && !entry_obj->entry->phar->is_data) { in PHP_METHOD()
4793 if (entry_obj->entry->is_temp_dir) { in PHP_METHOD()
4799 …if (phar_metadata_tracker_has_data(&entry_obj->entry->metadata_tracker, entry_obj->entry->is_persi… in PHP_METHOD()
4800 if (entry_obj->entry->is_persistent) { in PHP_METHOD()
4801 phar_archive_data *phar = entry_obj->entry->phar; in PHP_METHOD()
4808 …entry_obj->entry = zend_hash_str_find_ptr(&phar->manifest, entry_obj->entry->filename, entry_obj-> in PHP_METHOD()
4811 phar_metadata_tracker_free(&entry_obj->entry->metadata_tracker, entry_obj->entry->is_persistent); in PHP_METHOD()
4812 entry_obj->entry->is_modified = 1; in PHP_METHOD()
4813 entry_obj->entry->phar->is_modified = 1; in PHP_METHOD()
4815 phar_flush(entry_obj->entry->phar, &error); in PHP_METHOD()
4845 if (entry_obj->entry->is_dir) { in PHP_METHOD()
4847 …contents, \"%s\" in phar \"%s\" is a directory", entry_obj->entry->filename, entry_obj->entry->pha… in PHP_METHOD()
4851 link = phar_get_link_source(entry_obj->entry); in PHP_METHOD()
4854 link = entry_obj->entry; in PHP_METHOD()
4859 …t retrieve contents, \"%s\" in phar \"%s\": %s", entry_obj->entry->filename, entry_obj->entry->pha… in PHP_METHOD()
4866 …not retrieve contents of \"%s\" in phar \"%s\"", entry_obj->entry->filename, entry_obj->entry->pha… in PHP_METHOD()
4892 if (entry_obj->entry->is_tar) { in PHP_METHOD()
4898 if (entry_obj->entry->is_dir) { in PHP_METHOD()
4904 if (PHAR_G(readonly) && !entry_obj->entry->phar->is_data) { in PHP_METHOD()
4910 if (entry_obj->entry->is_deleted) { in PHP_METHOD()
4916 if (entry_obj->entry->is_persistent) { in PHP_METHOD()
4917 phar_archive_data *phar = entry_obj->entry->phar; in PHP_METHOD()
4924 …entry_obj->entry = zend_hash_str_find_ptr(&phar->manifest, entry_obj->entry->filename, entry_obj-> in PHP_METHOD()
4928 if (entry_obj->entry->flags & PHAR_ENT_COMPRESSED_GZ) { in PHP_METHOD()
4932 if ((entry_obj->entry->flags & PHAR_ENT_COMPRESSED_BZ2) != 0) { in PHP_METHOD()
4940 if (SUCCESS != phar_open_entry_fp(entry_obj->entry, &error, 1)) { in PHP_METHOD()
4942 …phar \"%s\" in order to compress with gzip: %s", entry_obj->entry->filename, entry_obj->entry->pha… in PHP_METHOD()
4954 entry_obj->entry->old_flags = entry_obj->entry->flags; in PHP_METHOD()
4955 entry_obj->entry->flags &= ~PHAR_ENT_COMPRESSION_MASK; in PHP_METHOD()
4956 entry_obj->entry->flags |= PHAR_ENT_COMPRESSED_GZ; in PHP_METHOD()
4959 if (entry_obj->entry->flags & PHAR_ENT_COMPRESSED_BZ2) { in PHP_METHOD()
4963 if ((entry_obj->entry->flags & PHAR_ENT_COMPRESSED_GZ) != 0) { in PHP_METHOD()
4971 if (SUCCESS != phar_open_entry_fp(entry_obj->entry, &error, 1)) { in PHP_METHOD()
4973 …har \"%s\" in order to compress with bzip2: %s", entry_obj->entry->filename, entry_obj->entry->pha… in PHP_METHOD()
4984 entry_obj->entry->old_flags = entry_obj->entry->flags; in PHP_METHOD()
4985 entry_obj->entry->flags &= ~PHAR_ENT_COMPRESSION_MASK; in PHP_METHOD()
4986 entry_obj->entry->flags |= PHAR_ENT_COMPRESSED_BZ2; in PHP_METHOD()
4993 entry_obj->entry->phar->is_modified = 1; in PHP_METHOD()
4994 entry_obj->entry->is_modified = 1; in PHP_METHOD()
4995 phar_flush(entry_obj->entry->phar, &error); in PHP_METHOD()
5019 if (entry_obj->entry->is_dir) { in PHP_METHOD()
5025 if ((entry_obj->entry->flags & PHAR_ENT_COMPRESSION_MASK) == 0) { in PHP_METHOD()
5029 if (PHAR_G(readonly) && !entry_obj->entry->phar->is_data) { in PHP_METHOD()
5035 if (entry_obj->entry->is_deleted) { in PHP_METHOD()
5041 if ((entry_obj->entry->flags & PHAR_ENT_COMPRESSED_GZ) != 0 && !PHAR_G(has_zlib)) { in PHP_METHOD()
5047 if ((entry_obj->entry->flags & PHAR_ENT_COMPRESSED_BZ2) != 0 && !PHAR_G(has_bz2)) { in PHP_METHOD()
5053 if (entry_obj->entry->is_persistent) { in PHP_METHOD()
5054 phar_archive_data *phar = entry_obj->entry->phar; in PHP_METHOD()
5061 …entry_obj->entry = zend_hash_str_find_ptr(&phar->manifest, entry_obj->entry->filename, entry_obj-> in PHP_METHOD()
5063 switch (entry_obj->entry->flags & PHAR_ENT_COMPRESSION_MASK) { in PHP_METHOD()
5076 if (SUCCESS != phar_open_entry_fp(entry_obj->entry, &error, 1)) { in PHP_METHOD()
5078 …le \"%s\" in phar \"%s\": %s", compression_type, entry_obj->entry->filename, entry_obj->entry->pha… in PHP_METHOD()
5083 entry_obj->entry->old_flags = entry_obj->entry->flags; in PHP_METHOD()
5084 entry_obj->entry->flags &= ~PHAR_ENT_COMPRESSION_MASK; in PHP_METHOD()
5085 entry_obj->entry->phar->is_modified = 1; in PHP_METHOD()
5086 entry_obj->entry->is_modified = 1; in PHP_METHOD()
5087 phar_flush(entry_obj->entry->phar, &error); in PHP_METHOD()