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
617 entry = estrndup(Z_STRVAL_P(z_path_info), entry_len); in PHP_METHOD()
620 memcpy(path_info + Z_STRLEN_P(z_script_name), entry, entry_len + 1); in PHP_METHOD()
624 entry = estrndup("", 0); in PHP_METHOD()
642 entry = path_info; in PHP_METHOD()
643 entry_len = strlen(entry); in PHP_METHOD()
649 entry = estrndup("", 0); in PHP_METHOD()
666 entry = estrndup(pt + (fname_len - (basename - fname)), entry_len); in PHP_METHOD()
675 ZVAL_STRINGL(&params, entry, entry_len); in PHP_METHOD()
695 efree(entry); in PHP_METHOD()
696 entry = estrndup(Z_STRVAL_P(rewrite_fci.retval), Z_STRLEN_P(rewrite_fci.retval)); in PHP_METHOD()
701 phar_do_403(entry, entry_len); in PHP_METHOD()
717 efree(entry); in PHP_METHOD()
727 phar_postprocess_ru_web(fname, fname_len, &entry, &entry_len, &ru, &ru_len); in PHP_METHOD()
730 if (!entry_len || (entry_len == 1 && entry[0] == '/')) { in PHP_METHOD()
731 efree(entry); in PHP_METHOD()
734 entry = index_php; in PHP_METHOD()
736 if (entry[0] != '/') { in PHP_METHOD()
737 spprintf(&entry, 0, "/%s", index_php); in PHP_METHOD()
742 entry = estrndup("/index.php", sizeof("/index.php")); in PHP_METHOD()
747 (info = phar_get_entry_info(phar, entry, entry_len, NULL, 0)) == NULL) { in PHP_METHOD()
748 phar_do_404(phar, fname, fname_len, f404, f404_len, entry, entry_len); in PHP_METHOD()
772 ctr.line_len = spprintf((char **) &(ctr.line), 4096, "Location: %s%s", path_info, entry + 1); in PHP_METHOD()
774 ctr.line_len = spprintf((char **) &(ctr.line), 4096, "Location: %s%s", path_info, entry); in PHP_METHOD()
793 (info = phar_get_entry_info(phar, entry, entry_len, NULL, 0)) == NULL) { in PHP_METHOD()
794 phar_do_404(phar, fname, fname_len, f404, f404_len, entry, entry_len); in PHP_METHOD()
799 const char *ext = zend_memrchr(entry, '.', entry_len); in PHP_METHOD()
817 efree(entry); in PHP_METHOD()
834 efree(entry); in PHP_METHOD()
845 code = phar_file_type(&PHAR_G(mime_types), entry, &mime_type); in PHP_METHOD()
847 phar_file_action(phar, info, mime_type, code, entry, entry_len, fname, pt, ru, ru_len); in PHP_METHOD()
1099 char *fname, *alias = NULL, *error, *arch = NULL, *entry = NULL, *save_fname; in PHP_METHOD() local
1129 …if (SUCCESS == phar_split_fname(fname, fname_len, &arch, &arch_len, &entry, &entry_len, !is_data, … in PHP_METHOD()
1153 if (entry) { in PHP_METHOD()
1154 efree(entry); in PHP_METHOD()
1187 efree(entry); in PHP_METHOD()
1200 if (entry) { in PHP_METHOD()
1201 fname_len = spprintf(&fname, 0, "phar://%s%s", phar_data->fname, entry); in PHP_METHOD()
1202 efree(entry); in PHP_METHOD()
1277 char *fname, *error, *zname, *arch, *entry; in PHP_METHOD() local
1304 …", 7) && SUCCESS == phar_split_fname(zname, zname_len, &arch, &arch_len, &entry, &entry_len, 2, 0)… in PHP_METHOD()
1308 efree(entry); in PHP_METHOD()
1312 efree(entry); in PHP_METHOD()
1453 fname_len = spprintf(&fname, 0, "%s%c%s", test, DEFAULT_SLASH, intern->u.dir.entry.d_name); in phar_build()
1910 static int phar_copy_file_contents(phar_entry_info *entry, php_stream *fp) /* {{{ */ in phar_copy_file_contents() argument
1916 if (FAILURE == phar_open_entry_fp(entry, &error, 1)) { in phar_copy_file_contents()
1919 …phar archive \"%s\", unable to open entry \"%s\" contents: %s", entry->phar->fname, entry->filenam… in phar_copy_file_contents()
1923 …ert phar archive \"%s\", unable to open entry \"%s\" contents", entry->phar->fname, entry->filenam… in phar_copy_file_contents()
1929 phar_seek_efp(entry, 0, SEEK_SET, 0, 1); in phar_copy_file_contents()
1931 link = phar_get_link_source(entry); in phar_copy_file_contents()
1934 link = entry; in phar_copy_file_contents()
1939 …ert phar archive \"%s\", unable to copy entry \"%s\" contents", entry->phar->fname, entry->filenam… in phar_copy_file_contents()
1943 if (entry->fp_type == PHAR_MOD) { in phar_copy_file_contents()
1945 entry->cfp = entry->fp; in phar_copy_file_contents()
1946 entry->fp = NULL; in phar_copy_file_contents()
1950 entry->fp_type = PHAR_FP; in phar_copy_file_contents()
1951 entry->offset = offset; in phar_copy_file_contents()
2209 phar_entry_info *entry, newentry; in phar_convert_to_other() local
2253 ZEND_HASH_FOREACH_PTR(&source->manifest, entry) { in phar_convert_to_other()
2255 newentry = *entry; in phar_convert_to_other()
2283 newentry.tar_type = (entry->is_dir ? TAR_DIR : TAR_FILE); in phar_convert_to_other()
2589 phar_entry_info *entry; in PHP_METHOD() local
2608 …if (NULL != (entry = zend_hash_str_find_ptr(&phar_obj->archive->manifest, fname, (uint32_t) fname_… in PHP_METHOD()
2609 if (entry->is_deleted) { in PHP_METHOD()
2613 entry->is_deleted = 1; in PHP_METHOD()
2614 entry->is_modified = 1; in PHP_METHOD()
3097 phar_entry_info *entry = (phar_entry_info *)Z_PTR_P(zv); in phar_set_compression() local
3100 if (entry->is_deleted) { in phar_set_compression()
3104 entry->old_flags = entry->flags; in phar_set_compression()
3105 entry->flags &= ~PHAR_ENT_COMPRESSION_MASK; in phar_set_compression()
3106 entry->flags |= compress; in phar_set_compression()
3107 entry->is_modified = 1; in phar_set_compression()
3114 phar_entry_info *entry = (phar_entry_info *)Z_PTR_P(zv); in phar_test_compression() local
3116 if (entry->is_deleted) { in phar_test_compression()
3121 if (entry->flags & PHAR_ENT_COMPRESSED_BZ2) { in phar_test_compression()
3127 if (entry->flags & PHAR_ENT_COMPRESSED_GZ) { in phar_test_compression()
3488 phar_entry_info *entry; in PHP_METHOD() local
3497 …if (NULL != (entry = zend_hash_str_find_ptr(&phar_obj->archive->manifest, fname, (uint32_t) fname_… in PHP_METHOD()
3498 if (entry->is_deleted) { in PHP_METHOD()
3524 phar_entry_info *entry; in PHP_METHOD() local
3534 if (!(entry = phar_get_entry_info_dir(phar_obj->archive, fname, fname_len, 1, &error, 0))) { in PHP_METHOD()
3552 if (entry->is_temp_dir) { in PHP_METHOD()
3553 efree(entry->filename); in PHP_METHOD()
3554 efree(entry); in PHP_METHOD()
3738 phar_entry_info *entry; in PHP_METHOD() local
3752 …if (NULL != (entry = zend_hash_str_find_ptr(&phar_obj->archive->manifest, fname, (uint32_t) fname_… in PHP_METHOD()
3753 if (entry->is_deleted) { in PHP_METHOD()
3764 entry = zend_hash_str_find_ptr(&phar_obj->archive->manifest, fname, (uint32_t) fname_len); in PHP_METHOD()
3766 entry->is_modified = 0; in PHP_METHOD()
3767 entry->is_deleted = 1; in PHP_METHOD()
4084 static int phar_extract_file(bool overwrite, phar_entry_info *entry, char *dest, size_t dest_len, c… in phar_extract_file() argument
4096 if (entry->is_mounted) { in phar_extract_file()
4101 …if (entry->filename_len >= sizeof(".phar")-1 && !memcmp(entry->filename, ".phar", sizeof(".phar")-… in phar_extract_file()
4109 if (virtual_file_ex(&new_state, entry->filename, NULL, CWD_EXPAND) != 0 || in phar_extract_file()
4111 if (EINVAL == errno && entry->filename_len > 50) { in phar_extract_file()
4112 char *tmp = estrndup(entry->filename, 50); in phar_extract_file()
4116 spprintf(error, 4096, "Cannot extract \"%s\", internal error", entry->filename); in phar_extract_file()
4142 if (entry->filename_len > 50) { in phar_extract_file()
4143 tmp = estrndup(entry->filename, 50); in phar_extract_file()
4147 …ract \"%s\" to \"%s...\", extracted filename is too long for filesystem", entry->filename, fullpat… in phar_extract_file()
4155 spprintf(error, 4096, "Cannot extract \"%s\", internal error", entry->filename); in phar_extract_file()
4162 … extract \"%s\" to \"%s\", openbasedir/safe mode restrictions in effect", entry->filename, fullpat… in phar_extract_file()
4170 …spprintf(error, 4096, "Cannot extract \"%s\" to \"%s\", path already exists", entry->filename, ful… in phar_extract_file()
4186 if (entry->is_dir) { in phar_extract_file()
4187 …if (!php_stream_mkdir(fullpath, entry->flags & PHAR_ENT_PERM_MASK, PHP_STREAM_MKDIR_RECURSIVE, NU… in phar_extract_file()
4188 …spprintf(error, 4096, "Cannot extract \"%s\", could not create directory \"%s\"", entry->filename,… in phar_extract_file()
4195 …spprintf(error, 4096, "Cannot extract \"%s\", could not create directory \"%s\"", entry->filename,… in phar_extract_file()
4212 if (entry->is_dir) { in phar_extract_file()
4220 …spprintf(error, 4096, "Cannot extract \"%s\", could not open for writing \"%s\"", entry->filename,… in phar_extract_file()
4225 …if ((phar_get_fp_type(entry) == PHAR_FP && (entry->flags & PHAR_ENT_COMPRESSION_MASK)) || !phar_ge… in phar_extract_file()
4226 if (FAILURE == phar_open_entry_fp(entry, error, 1)) { in phar_extract_file()
4228 …nnot extract \"%s\" to \"%s\", unable to open internal file pointer: %s", entry->filename, fullpat… in phar_extract_file()
4230 … "Cannot extract \"%s\" to \"%s\", unable to open internal file pointer", entry->filename, fullpat… in phar_extract_file()
4238 if (FAILURE == phar_seek_efp(entry, 0, SEEK_SET, 0, 0)) { in phar_extract_file()
4239 … "Cannot extract \"%s\" to \"%s\", unable to seek internal file pointer", entry->filename, fullpat… in phar_extract_file()
4245 …if (SUCCESS != php_stream_copy_to_stream_ex(phar_get_efp(entry, 0), fp, entry->uncompressed_filesi… in phar_extract_file()
4246 …spprintf(error, 4096, "Cannot extract \"%s\" to \"%s\", copying contents failed", entry->filename,… in phar_extract_file()
4253 mode = (mode_t) entry->flags & PHAR_ENT_PERM_MASK; in phar_extract_file()
4256 …spprintf(error, 4096, "Cannot extract \"%s\" to \"%s\", setting file permissions failed", entry->f… in phar_extract_file()
4268 phar_entry_info *entry; in extract_helper() local
4272 ZEND_HASH_FOREACH_PTR(&archive->manifest, entry) { in extract_helper()
4273 if (FAILURE == phar_extract_file(overwrite, entry, pathto, pathto_len, error)) return -1; in extract_helper()
4278 ZEND_HASH_FOREACH_PTR(&archive->manifest, entry) { in extract_helper()
4279 if (0 != strncmp(ZSTR_VAL(search), entry->filename, ZSTR_LEN(search))) continue; in extract_helper()
4280 if (FAILURE == phar_extract_file(overwrite, entry, pathto, pathto_len, error)) return -1; in extract_helper()
4285 entry = zend_hash_find_ptr(&archive->manifest, search); in extract_helper()
4286 if (NULL == entry) return 0; in extract_helper()
4287 if (FAILURE == phar_extract_file(overwrite, entry, pathto, pathto_len, error)) return -1; in extract_helper()
4402 char *fname, *arch, *entry, *error; in PHP_METHOD() local
4416 if (entry_obj->entry) { in PHP_METHOD()
4421 …e, "phar://", 7) || phar_split_fname(fname, fname_len, &arch, &arch_len, &entry, &entry_len, 2, 0)… in PHP_METHOD()
4429 efree(entry); in PHP_METHOD()
4441 if ((entry_info = phar_get_entry_info_dir(phar_data, entry, entry_len, 1, &error, 1)) == NULL) { in PHP_METHOD()
4443 …"Cannot access phar file entry '%s' in archive '%s'%s%s", entry, arch, error ? ", " : "", error ? … in PHP_METHOD()
4445 efree(entry); in PHP_METHOD()
4450 efree(entry); in PHP_METHOD()
4452 entry_obj->entry = entry_info; in PHP_METHOD()
4466 if (!entry_obj->entry) { \
4482 if (entry_obj->entry && entry_obj->entry->is_temp_dir) { in PHP_METHOD()
4483 if (entry_obj->entry->filename) { in PHP_METHOD()
4484 efree(entry_obj->entry->filename); in PHP_METHOD()
4485 entry_obj->entry->filename = NULL; in PHP_METHOD()
4488 efree(entry_obj->entry); in PHP_METHOD()
4489 entry_obj->entry = NULL; in PHP_METHOD()
4503 RETURN_LONG(entry_obj->entry->compressed_filesize); in PHP_METHOD()
4520 RETURN_BOOL(entry_obj->entry->flags & PHAR_ENT_COMPRESSION_MASK); in PHP_METHOD()
4525 RETURN_BOOL(entry_obj->entry->flags & PHAR_ENT_COMPRESSION_MASK); in PHP_METHOD()
4527 RETURN_BOOL(entry_obj->entry->flags & PHAR_ENT_COMPRESSED_GZ); in PHP_METHOD()
4529 RETURN_BOOL(entry_obj->entry->flags & PHAR_ENT_COMPRESSED_BZ2); in PHP_METHOD()
4546 if (entry_obj->entry->is_dir) { in PHP_METHOD()
4552 if (entry_obj->entry->is_crc_checked) { in PHP_METHOD()
4553 RETURN_LONG(entry_obj->entry->crc32); in PHP_METHOD()
4570 RETURN_BOOL(entry_obj->entry->is_crc_checked); in PHP_METHOD()
4583 RETURN_LONG(entry_obj->entry->flags & ~(PHAR_ENT_PERM_MASK|PHAR_ENT_COMPRESSION_MASK)); in PHP_METHOD()
4599 if (entry_obj->entry->is_temp_dir) { in PHP_METHOD()
4601 …orary directory (not an actual entry in the archive), cannot chmod", entry_obj->entry->filename); \ in PHP_METHOD()
4605 if (PHAR_G(readonly) && !entry_obj->entry->phar->is_data) { in PHP_METHOD()
4606 …n phar \"%s\", write operations are prohibited", entry_obj->entry->filename, entry_obj->entry->pha… in PHP_METHOD()
4610 if (entry_obj->entry->is_persistent) { in PHP_METHOD()
4611 phar_archive_data *phar = entry_obj->entry->phar; in PHP_METHOD()
4618 …entry_obj->entry = zend_hash_str_find_ptr(&phar->manifest, entry_obj->entry->filename, entry_obj-> in PHP_METHOD()
4621 entry_obj->entry->flags &= ~PHAR_ENT_PERM_MASK; in PHP_METHOD()
4623 entry_obj->entry->flags |= perms; in PHP_METHOD()
4624 entry_obj->entry->old_flags = entry_obj->entry->flags; in PHP_METHOD()
4625 entry_obj->entry->phar->is_modified = 1; in PHP_METHOD()
4626 entry_obj->entry->is_modified = 1; in PHP_METHOD()
4640 phar_flush(entry_obj->entry->phar, 0, 0, 0, &error); in PHP_METHOD()
4658 …RETURN_BOOL(phar_metadata_tracker_has_data(&entry_obj->entry->metadata_tracker, entry_obj->entry->… in PHP_METHOD()
4675 tracker = &entry_obj->entry->metadata_tracker; in PHP_METHOD()
4676 if (phar_metadata_tracker_has_data(tracker, entry_obj->entry->is_persistent)) { in PHP_METHOD()
4677 …phar_metadata_tracker_unserialize_or_copy(tracker, return_value, entry_obj->entry->is_persistent, … in PHP_METHOD()
4694 if (PHAR_G(readonly) && !entry_obj->entry->phar->is_data) { in PHP_METHOD()
4699 if (entry_obj->entry->is_temp_dir) { in PHP_METHOD()
4705 if (entry_obj->entry->is_persistent) { in PHP_METHOD()
4706 phar_archive_data *phar = entry_obj->entry->phar; in PHP_METHOD()
4713 …entry_obj->entry = zend_hash_str_find_ptr(&phar->manifest, entry_obj->entry->filename, entry_obj-> in PHP_METHOD()
4714 ZEND_ASSERT(!entry_obj->entry->is_persistent); /* Should no longer be persistent */ in PHP_METHOD()
4717 …if (serialize_metadata_or_throw(&entry_obj->entry->metadata_tracker, entry_obj->entry->is_persiste… in PHP_METHOD()
4721 entry_obj->entry->is_modified = 1; in PHP_METHOD()
4722 entry_obj->entry->phar->is_modified = 1; in PHP_METHOD()
4723 phar_flush(entry_obj->entry->phar, 0, 0, 0, &error); in PHP_METHOD()
4743 if (PHAR_G(readonly) && !entry_obj->entry->phar->is_data) { in PHP_METHOD()
4748 if (entry_obj->entry->is_temp_dir) { in PHP_METHOD()
4754 …if (phar_metadata_tracker_has_data(&entry_obj->entry->metadata_tracker, entry_obj->entry->is_persi… in PHP_METHOD()
4755 if (entry_obj->entry->is_persistent) { in PHP_METHOD()
4756 phar_archive_data *phar = entry_obj->entry->phar; in PHP_METHOD()
4763 …entry_obj->entry = zend_hash_str_find_ptr(&phar->manifest, entry_obj->entry->filename, entry_obj-> in PHP_METHOD()
4766 phar_metadata_tracker_free(&entry_obj->entry->metadata_tracker, entry_obj->entry->is_persistent); in PHP_METHOD()
4767 entry_obj->entry->is_modified = 1; in PHP_METHOD()
4768 entry_obj->entry->phar->is_modified = 1; in PHP_METHOD()
4770 phar_flush(entry_obj->entry->phar, 0, 0, 0, &error); in PHP_METHOD()
4800 if (entry_obj->entry->is_dir) { in PHP_METHOD()
4802 …contents, \"%s\" in phar \"%s\" is a directory", entry_obj->entry->filename, entry_obj->entry->pha… in PHP_METHOD()
4806 link = phar_get_link_source(entry_obj->entry); in PHP_METHOD()
4809 link = entry_obj->entry; in PHP_METHOD()
4814 …t retrieve contents, \"%s\" in phar \"%s\": %s", entry_obj->entry->filename, entry_obj->entry->pha… in PHP_METHOD()
4821 …not retrieve contents of \"%s\" in phar \"%s\"", entry_obj->entry->filename, entry_obj->entry->pha… in PHP_METHOD()
4847 if (entry_obj->entry->is_tar) { in PHP_METHOD()
4853 if (entry_obj->entry->is_dir) { in PHP_METHOD()
4859 if (PHAR_G(readonly) && !entry_obj->entry->phar->is_data) { in PHP_METHOD()
4865 if (entry_obj->entry->is_deleted) { in PHP_METHOD()
4871 if (entry_obj->entry->is_persistent) { in PHP_METHOD()
4872 phar_archive_data *phar = entry_obj->entry->phar; in PHP_METHOD()
4879 …entry_obj->entry = zend_hash_str_find_ptr(&phar->manifest, entry_obj->entry->filename, entry_obj-> in PHP_METHOD()
4883 if (entry_obj->entry->flags & PHAR_ENT_COMPRESSED_GZ) { in PHP_METHOD()
4887 if ((entry_obj->entry->flags & PHAR_ENT_COMPRESSED_BZ2) != 0) { in PHP_METHOD()
4895 if (SUCCESS != phar_open_entry_fp(entry_obj->entry, &error, 1)) { in PHP_METHOD()
4897 …phar \"%s\" in order to compress with gzip: %s", entry_obj->entry->filename, entry_obj->entry->pha… in PHP_METHOD()
4909 entry_obj->entry->old_flags = entry_obj->entry->flags; in PHP_METHOD()
4910 entry_obj->entry->flags &= ~PHAR_ENT_COMPRESSION_MASK; in PHP_METHOD()
4911 entry_obj->entry->flags |= PHAR_ENT_COMPRESSED_GZ; in PHP_METHOD()
4914 if (entry_obj->entry->flags & PHAR_ENT_COMPRESSED_BZ2) { in PHP_METHOD()
4918 if ((entry_obj->entry->flags & PHAR_ENT_COMPRESSED_GZ) != 0) { in PHP_METHOD()
4926 if (SUCCESS != phar_open_entry_fp(entry_obj->entry, &error, 1)) { in PHP_METHOD()
4928 …har \"%s\" in order to compress with bzip2: %s", entry_obj->entry->filename, entry_obj->entry->pha… in PHP_METHOD()
4939 entry_obj->entry->old_flags = entry_obj->entry->flags; in PHP_METHOD()
4940 entry_obj->entry->flags &= ~PHAR_ENT_COMPRESSION_MASK; in PHP_METHOD()
4941 entry_obj->entry->flags |= PHAR_ENT_COMPRESSED_BZ2; in PHP_METHOD()
4948 entry_obj->entry->phar->is_modified = 1; in PHP_METHOD()
4949 entry_obj->entry->is_modified = 1; in PHP_METHOD()
4950 phar_flush(entry_obj->entry->phar, 0, 0, 0, &error); in PHP_METHOD()
4974 if (entry_obj->entry->is_dir) { in PHP_METHOD()
4980 if ((entry_obj->entry->flags & PHAR_ENT_COMPRESSION_MASK) == 0) { in PHP_METHOD()
4984 if (PHAR_G(readonly) && !entry_obj->entry->phar->is_data) { in PHP_METHOD()
4990 if (entry_obj->entry->is_deleted) { in PHP_METHOD()
4996 if ((entry_obj->entry->flags & PHAR_ENT_COMPRESSED_GZ) != 0 && !PHAR_G(has_zlib)) { in PHP_METHOD()
5002 if ((entry_obj->entry->flags & PHAR_ENT_COMPRESSED_BZ2) != 0 && !PHAR_G(has_bz2)) { in PHP_METHOD()
5008 if (entry_obj->entry->is_persistent) { in PHP_METHOD()
5009 phar_archive_data *phar = entry_obj->entry->phar; in PHP_METHOD()
5016 …entry_obj->entry = zend_hash_str_find_ptr(&phar->manifest, entry_obj->entry->filename, entry_obj-> in PHP_METHOD()
5018 switch (entry_obj->entry->flags & PHAR_ENT_COMPRESSION_MASK) { in PHP_METHOD()
5031 if (SUCCESS != phar_open_entry_fp(entry_obj->entry, &error, 1)) { in PHP_METHOD()
5033 …le \"%s\" in phar \"%s\": %s", compression_type, entry_obj->entry->filename, entry_obj->entry->pha… in PHP_METHOD()
5038 entry_obj->entry->old_flags = entry_obj->entry->flags; in PHP_METHOD()
5039 entry_obj->entry->flags &= ~PHAR_ENT_COMPRESSION_MASK; in PHP_METHOD()
5040 entry_obj->entry->phar->is_modified = 1; in PHP_METHOD()
5041 entry_obj->entry->is_modified = 1; in PHP_METHOD()
5042 phar_flush(entry_obj->entry->phar, 0, 0, 0, &error); in PHP_METHOD()