Lines Matching refs:entry

48 static void phar_mung_server_vars(char *fname, char *entry, size_t entry_len, char *basename, size_…  in phar_mung_server_vars()  argument
68 if (code > (size_t)entry_len && !memcmp(path_info, entry, entry_len)) { in phar_mung_server_vars()
76 zend_string *str = strpprintf(4096, "phar://%s%s", fname, entry); in phar_mung_server_vars()
116 ZVAL_STRINGL(stuff, entry, entry_len); in phar_mung_server_vars()
123 zend_string *str = strpprintf(4096, "phar://%s%s", fname, entry); in phar_mung_server_vars()
134 …chive_data *phar, phar_entry_info *info, char *mime_type, int code, char *entry, size_t entry_len,… in phar_file_action() argument
153 if (entry[0] == '/') { in phar_file_action()
154 spprintf(&name, 4096, "phar://%s%s", arch, entry); in phar_file_action()
156 spprintf(&name, 4096, "phar://%s/%s", arch, entry); in phar_file_action()
212 phar_mung_server_vars(arch, entry, entry_len, basename, ru_len); in phar_file_action()
216 if (entry[0] == '/') { in phar_file_action()
217 name_len = spprintf(&name, 4096, "phar://%s%s", arch, entry); in phar_file_action()
219 name_len = spprintf(&name, 4096, "phar://%s/%s", arch, entry); in phar_file_action()
233 if ((cwd = zend_memrchr(entry, '/', entry_len))) { in phar_file_action()
235 if (entry == cwd) { in phar_file_action()
239 } else if (entry[0] == '/') { in phar_file_action()
240 PHAR_G(cwd_len) = (cwd - (entry + 1)); in phar_file_action()
241 PHAR_G(cwd) = estrndup(entry + 1, PHAR_G(cwd_len)); in phar_file_action()
243 PHAR_G(cwd_len) = (cwd - entry); in phar_file_action()
244 PHAR_G(cwd) = estrndup(entry, PHAR_G(cwd_len)); in phar_file_action()
299 static void phar_do_403(char *entry, size_t entry_len) /* {{{ */ in phar_do_403() argument
313 … *phar, char *fname, size_t fname_len, char *f404, size_t f404_len, char *entry, size_t entry_len)… in phar_do_404() argument
340 static void phar_postprocess_ru_web(char *fname, size_t fname_len, char **entry, size_t *entry_len,… in phar_postprocess_ru_web() argument
342 char *e = *entry + 1, *u = NULL, *u1 = NULL, *saveu = NULL; in phar_postprocess_ru_web()
400 char *fname, *arch, *entry; in PHP_METHOD() local
411 …", 7) && SUCCESS == phar_split_fname(fname, fname_len, &arch, &arch_len, &entry, &entry_len, 2, 0)… in PHP_METHOD()
412 efree(entry); in PHP_METHOD()
437 char *fname, *arch = NULL, *entry = NULL, *path, *actual; in PHP_METHOD() local
453 …", 7) && SUCCESS == phar_split_fname(fname, fname_len, &arch, &arch_len, &entry, &entry_len, 2, 0)… in PHP_METHOD()
454 efree(entry); in PHP_METHOD()
455 entry = NULL; in PHP_METHOD()
480 if (path && path == entry) { in PHP_METHOD()
481 efree(entry); in PHP_METHOD()
491 if (entry && path && path == entry) { in PHP_METHOD()
492 efree(entry); in PHP_METHOD()
508 …} else if (SUCCESS == phar_split_fname(path, path_len, &arch, &arch_len, &entry, &entry_len, 2, 0)… in PHP_METHOD()
509 path = entry; in PHP_METHOD()
531 char *fname, *path_info, *mime_type = NULL, *entry, *pt; in PHP_METHOD() local
601 entry = estrndup(Z_STRVAL_P(z_path_info), entry_len); in PHP_METHOD()
604 memcpy(path_info + Z_STRLEN_P(z_script_name), entry, entry_len + 1); in PHP_METHOD()
608 entry = estrndup("", 0); in PHP_METHOD()
626 entry = path_info; in PHP_METHOD()
627 entry_len = strlen(entry); in PHP_METHOD()
633 entry = estrndup("", 0); in PHP_METHOD()
650 entry = estrndup(pt + (fname_len - (basename - fname)), entry_len); in PHP_METHOD()
661 ZVAL_STRINGL(&params, entry, entry_len); in PHP_METHOD()
703 efree(entry); in PHP_METHOD()
704 entry = estrndup(Z_STRVAL_P(fci.retval), Z_STRLEN_P(fci.retval)); in PHP_METHOD()
709 phar_do_403(entry, entry_len); in PHP_METHOD()
730 phar_postprocess_ru_web(fname, fname_len, &entry, &entry_len, &ru, &ru_len); in PHP_METHOD()
733 if (!entry_len || (entry_len == 1 && entry[0] == '/')) { in PHP_METHOD()
734 efree(entry); in PHP_METHOD()
737 entry = index_php; in PHP_METHOD()
739 if (entry[0] != '/') { in PHP_METHOD()
740 spprintf(&entry, 0, "/%s", index_php); in PHP_METHOD()
745 entry = estrndup("/index.php", sizeof("/index.php")); in PHP_METHOD()
750 (info = phar_get_entry_info(phar, entry, entry_len, NULL, 0)) == NULL) { in PHP_METHOD()
751 phar_do_404(phar, fname, fname_len, f404, f404_len, entry, entry_len); in PHP_METHOD()
775 ctr.line_len = spprintf(&(ctr.line), 4096, "Location: %s%s", path_info, entry + 1); in PHP_METHOD()
777 ctr.line_len = spprintf(&(ctr.line), 4096, "Location: %s%s", path_info, entry); in PHP_METHOD()
796 (info = phar_get_entry_info(phar, entry, entry_len, NULL, 0)) == NULL) { in PHP_METHOD()
797 phar_do_404(phar, fname, fname_len, f404, f404_len, entry, entry_len); in PHP_METHOD()
805 const char *ext = zend_memrchr(entry, '.', entry_len); in PHP_METHOD()
823 efree(entry); in PHP_METHOD()
840 efree(entry); in PHP_METHOD()
851 code = phar_file_type(&PHAR_G(mime_types), entry, &mime_type); in PHP_METHOD()
853 phar_file_action(phar, info, mime_type, code, entry, entry_len, fname, pt, ru, ru_len); in PHP_METHOD()
1116 char *fname, *alias = NULL, *error, *arch = NULL, *entry = NULL, *save_fname; in PHP_METHOD() local
1146 …if (SUCCESS == phar_split_fname(fname, fname_len, &arch, &arch_len, &entry, &entry_len, !is_data, … in PHP_METHOD()
1170 if (entry) { in PHP_METHOD()
1171 efree(entry); in PHP_METHOD()
1204 efree(entry); in PHP_METHOD()
1217 if (entry) { in PHP_METHOD()
1218 fname_len = spprintf(&fname, 0, "phar://%s%s", phar_data->fname, entry); in PHP_METHOD()
1219 efree(entry); in PHP_METHOD()
1298 char *fname, *error, *zname, *arch, *entry; in PHP_METHOD() local
1325 …", 7) && SUCCESS == phar_split_fname(zname, zname_len, &arch, &arch_len, &entry, &entry_len, 2, 0)… in PHP_METHOD()
1329 efree(entry); in PHP_METHOD()
1333 efree(entry); in PHP_METHOD()
1474 fname_len = spprintf(&fname, 0, "%s%c%s", test, DEFAULT_SLASH, intern->u.dir.entry.d_name); in phar_build()
1950 static int phar_copy_file_contents(phar_entry_info *entry, php_stream *fp) /* {{{ */ in phar_copy_file_contents() argument
1956 if (FAILURE == phar_open_entry_fp(entry, &error, 1)) { in phar_copy_file_contents()
1959 …phar archive \"%s\", unable to open entry \"%s\" contents: %s", entry->phar->fname, entry->filenam… in phar_copy_file_contents()
1963 …ert phar archive \"%s\", unable to open entry \"%s\" contents", entry->phar->fname, entry->filenam… in phar_copy_file_contents()
1969 phar_seek_efp(entry, 0, SEEK_SET, 0, 1); in phar_copy_file_contents()
1971 link = phar_get_link_source(entry); in phar_copy_file_contents()
1974 link = entry; in phar_copy_file_contents()
1979 …ert phar archive \"%s\", unable to copy entry \"%s\" contents", entry->phar->fname, entry->filenam… in phar_copy_file_contents()
1983 if (entry->fp_type == PHAR_MOD) { in phar_copy_file_contents()
1985 entry->cfp = entry->fp; in phar_copy_file_contents()
1986 entry->fp = NULL; in phar_copy_file_contents()
1990 entry->fp_type = PHAR_FP; in phar_copy_file_contents()
1991 entry->offset = offset; in phar_copy_file_contents()
2249 phar_entry_info *entry, newentry; in phar_convert_to_other() local
2296 ZEND_HASH_FOREACH_PTR(&source->manifest, entry) { in phar_convert_to_other()
2298 newentry = *entry; in phar_convert_to_other()
2331 newentry.tar_type = (entry->is_dir ? TAR_DIR : TAR_FILE); in phar_convert_to_other()
2627 phar_entry_info *entry; in PHP_METHOD() local
2645 …if (NULL != (entry = zend_hash_str_find_ptr(&phar_obj->archive->manifest, fname, (uint32_t) fname_… in PHP_METHOD()
2646 if (entry->is_deleted) { in PHP_METHOD()
2650 entry->is_deleted = 1; in PHP_METHOD()
2651 entry->is_modified = 1; in PHP_METHOD()
3147 phar_entry_info *entry = (phar_entry_info *)Z_PTR_P(zv); in phar_set_compression() local
3150 if (entry->is_deleted) { in phar_set_compression()
3154 entry->old_flags = entry->flags; in phar_set_compression()
3155 entry->flags &= ~PHAR_ENT_COMPRESSION_MASK; in phar_set_compression()
3156 entry->flags |= compress; in phar_set_compression()
3157 entry->is_modified = 1; in phar_set_compression()
3164 phar_entry_info *entry = (phar_entry_info *)Z_PTR_P(zv); in phar_test_compression() local
3166 if (entry->is_deleted) { in phar_test_compression()
3171 if (entry->flags & PHAR_ENT_COMPRESSED_BZ2) { in phar_test_compression()
3177 if (entry->flags & PHAR_ENT_COMPRESSED_GZ) { in phar_test_compression()
3545 phar_entry_info *entry; in PHP_METHOD() local
3554 …if (NULL != (entry = zend_hash_str_find_ptr(&phar_obj->archive->manifest, fname, (uint32_t) fname_… in PHP_METHOD()
3555 if (entry->is_deleted) { in PHP_METHOD()
3583 phar_entry_info *entry; in PHP_METHOD() local
3592 if (!(entry = phar_get_entry_info_dir(phar_obj->archive, fname, fname_len, 1, &error, 0))) { in PHP_METHOD()
3610 if (entry->is_temp_dir) { in PHP_METHOD()
3611 efree(entry->filename); in PHP_METHOD()
3612 efree(entry); in PHP_METHOD()
3779 phar_entry_info *entry; in PHP_METHOD() local
3792 …if (NULL != (entry = zend_hash_str_find_ptr(&phar_obj->archive->manifest, fname, (uint32_t) fname_… in PHP_METHOD()
3793 if (entry->is_deleted) { in PHP_METHOD()
3804 entry = zend_hash_str_find_ptr(&phar_obj->archive->manifest, fname, (uint32_t) fname_len); in PHP_METHOD()
3806 entry->is_modified = 0; in PHP_METHOD()
3807 entry->is_deleted = 1; in PHP_METHOD()
4109 static int phar_extract_file(zend_bool overwrite, phar_entry_info *entry, char *dest, size_t dest_l… in phar_extract_file() argument
4121 if (entry->is_mounted) { in phar_extract_file()
4126 …if (entry->filename_len >= sizeof(".phar")-1 && !memcmp(entry->filename, ".phar", sizeof(".phar")-… in phar_extract_file()
4134 if (virtual_file_ex(&new_state, entry->filename, NULL, CWD_EXPAND) != 0 || in phar_extract_file()
4136 if (EINVAL == errno && entry->filename_len > 50) { in phar_extract_file()
4137 char *tmp = estrndup(entry->filename, 50); in phar_extract_file()
4141 spprintf(error, 4096, "Cannot extract \"%s\", internal error", entry->filename); in phar_extract_file()
4167 if (entry->filename_len > 50) { in phar_extract_file()
4168 tmp = estrndup(entry->filename, 50); in phar_extract_file()
4172 …ract \"%s\" to \"%s...\", extracted filename is too long for filesystem", entry->filename, fullpat… in phar_extract_file()
4180 spprintf(error, 4096, "Cannot extract \"%s\", internal error", entry->filename); in phar_extract_file()
4187 … extract \"%s\" to \"%s\", openbasedir/safe mode restrictions in effect", entry->filename, fullpat… in phar_extract_file()
4195 …spprintf(error, 4096, "Cannot extract \"%s\" to \"%s\", path already exists", entry->filename, ful… in phar_extract_file()
4211 if (entry->is_dir) { in phar_extract_file()
4212 …if (!php_stream_mkdir(fullpath, entry->flags & PHAR_ENT_PERM_MASK, PHP_STREAM_MKDIR_RECURSIVE, NU… in phar_extract_file()
4213 …spprintf(error, 4096, "Cannot extract \"%s\", could not create directory \"%s\"", entry->filename,… in phar_extract_file()
4220 …spprintf(error, 4096, "Cannot extract \"%s\", could not create directory \"%s\"", entry->filename,… in phar_extract_file()
4237 if (entry->is_dir) { in phar_extract_file()
4245 …spprintf(error, 4096, "Cannot extract \"%s\", could not open for writing \"%s\"", entry->filename,… in phar_extract_file()
4250 if (!phar_get_efp(entry, 0)) { in phar_extract_file()
4251 if (FAILURE == phar_open_entry_fp(entry, error, 1)) { in phar_extract_file()
4253 …nnot extract \"%s\" to \"%s\", unable to open internal file pointer: %s", entry->filename, fullpat… in phar_extract_file()
4255 … "Cannot extract \"%s\" to \"%s\", unable to open internal file pointer", entry->filename, fullpat… in phar_extract_file()
4263 if (FAILURE == phar_seek_efp(entry, 0, SEEK_SET, 0, 0)) { in phar_extract_file()
4264 … "Cannot extract \"%s\" to \"%s\", unable to seek internal file pointer", entry->filename, fullpat… in phar_extract_file()
4270 …if (SUCCESS != php_stream_copy_to_stream_ex(phar_get_efp(entry, 0), fp, entry->uncompressed_filesi… in phar_extract_file()
4271 …spprintf(error, 4096, "Cannot extract \"%s\" to \"%s\", copying contents failed", entry->filename,… in phar_extract_file()
4278 mode = (mode_t) entry->flags & PHAR_ENT_PERM_MASK; in phar_extract_file()
4281 …spprintf(error, 4096, "Cannot extract \"%s\" to \"%s\", setting file permissions failed", entry->f… in phar_extract_file()
4293 phar_entry_info *entry; in extract_helper() local
4297 ZEND_HASH_FOREACH_PTR(&archive->manifest, entry) { in extract_helper()
4298 if (FAILURE == phar_extract_file(overwrite, entry, pathto, pathto_len, error)) return -1; in extract_helper()
4303 ZEND_HASH_FOREACH_PTR(&archive->manifest, entry) { in extract_helper()
4304 if (0 != strncmp(ZSTR_VAL(search), entry->filename, ZSTR_LEN(search))) continue; in extract_helper()
4305 if (FAILURE == phar_extract_file(overwrite, entry, pathto, pathto_len, error)) return -1; in extract_helper()
4310 entry = zend_hash_find_ptr(&archive->manifest, search); in extract_helper()
4311 if (NULL == entry) return 0; in extract_helper()
4312 if (FAILURE == phar_extract_file(overwrite, entry, pathto, pathto_len, error)) return -1; in extract_helper()
4443 char *fname, *arch, *entry, *error; in PHP_METHOD() local
4457 if (entry_obj->entry) { in PHP_METHOD()
4462 …e, "phar://", 7) || phar_split_fname(fname, fname_len, &arch, &arch_len, &entry, &entry_len, 2, 0)… in PHP_METHOD()
4470 efree(entry); in PHP_METHOD()
4482 if ((entry_info = phar_get_entry_info_dir(phar_data, entry, entry_len, 1, &error, 1)) == NULL) { in PHP_METHOD()
4484 …"Cannot access phar file entry '%s' in archive '%s'%s%s", entry, arch, error ? ", " : "", error ? … in PHP_METHOD()
4486 efree(entry); in PHP_METHOD()
4491 efree(entry); in PHP_METHOD()
4493 entry_obj->entry = entry_info; in PHP_METHOD()
4507 if (!entry_obj->entry) { \
4521 if (entry_obj->entry && entry_obj->entry->is_temp_dir) { in PHP_METHOD()
4522 if (entry_obj->entry->filename) { in PHP_METHOD()
4523 efree(entry_obj->entry->filename); in PHP_METHOD()
4524 entry_obj->entry->filename = NULL; in PHP_METHOD()
4527 efree(entry_obj->entry); in PHP_METHOD()
4528 entry_obj->entry = NULL; in PHP_METHOD()
4544 RETURN_LONG(entry_obj->entry->compressed_filesize); in PHP_METHOD()
4563 RETURN_BOOL(entry_obj->entry->flags & PHAR_ENT_COMPRESSION_MASK); in PHP_METHOD()
4565 RETURN_BOOL(entry_obj->entry->flags & PHAR_ENT_COMPRESSED_GZ); in PHP_METHOD()
4567 RETURN_BOOL(entry_obj->entry->flags & PHAR_ENT_COMPRESSED_BZ2); in PHP_METHOD()
4586 if (entry_obj->entry->is_dir) { in PHP_METHOD()
4592 if (entry_obj->entry->is_crc_checked) { in PHP_METHOD()
4593 RETURN_LONG(entry_obj->entry->crc32); in PHP_METHOD()
4612 RETURN_BOOL(entry_obj->entry->is_crc_checked); in PHP_METHOD()
4627 RETURN_LONG(entry_obj->entry->flags & ~(PHAR_ENT_PERM_MASK|PHAR_ENT_COMPRESSION_MASK)); in PHP_METHOD()
4640 if (entry_obj->entry->is_temp_dir) { in PHP_METHOD()
4642 …orary directory (not an actual entry in the archive), cannot chmod", entry_obj->entry->filename); \ in PHP_METHOD()
4646 if (PHAR_G(readonly) && !entry_obj->entry->phar->is_data) { in PHP_METHOD()
4647 …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, 0, 0, 0, &error); in PHP_METHOD()
4705 RETURN_BOOL(Z_TYPE(entry_obj->entry->metadata) != IS_UNDEF); in PHP_METHOD()
4720 if (Z_TYPE(entry_obj->entry->metadata) != IS_UNDEF) { in PHP_METHOD()
4721 if (entry_obj->entry->is_persistent) { in PHP_METHOD()
4722 char *buf = estrndup((char *) Z_PTR(entry_obj->entry->metadata), entry_obj->entry->metadata_len); in PHP_METHOD()
4724 phar_parse_metadata(&buf, return_value, entry_obj->entry->metadata_len); in PHP_METHOD()
4727 ZVAL_COPY(return_value, &entry_obj->entry->metadata); 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()
4758 if (entry_obj->entry->is_persistent) { in PHP_METHOD()
4759 phar_archive_data *phar = entry_obj->entry->phar; in PHP_METHOD()
4766 …entry_obj->entry = zend_hash_str_find_ptr(&phar->manifest, entry_obj->entry->filename, entry_obj-> in PHP_METHOD()
4768 if (Z_TYPE(entry_obj->entry->metadata) != IS_UNDEF) { in PHP_METHOD()
4769 zval_ptr_dtor(&entry_obj->entry->metadata); in PHP_METHOD()
4770 ZVAL_UNDEF(&entry_obj->entry->metadata); in PHP_METHOD()
4773 ZVAL_COPY(&entry_obj->entry->metadata, metadata); in PHP_METHOD()
4775 entry_obj->entry->is_modified = 1; in PHP_METHOD()
4776 entry_obj->entry->phar->is_modified = 1; in PHP_METHOD()
4777 phar_flush(entry_obj->entry->phar, 0, 0, 0, &error); in PHP_METHOD()
4799 if (PHAR_G(readonly) && !entry_obj->entry->phar->is_data) { in PHP_METHOD()
4804 if (entry_obj->entry->is_temp_dir) { in PHP_METHOD()
4810 if (Z_TYPE(entry_obj->entry->metadata) != IS_UNDEF) { in PHP_METHOD()
4811 if (entry_obj->entry->is_persistent) { in PHP_METHOD()
4812 phar_archive_data *phar = entry_obj->entry->phar; in PHP_METHOD()
4819 …entry_obj->entry = zend_hash_str_find_ptr(&phar->manifest, entry_obj->entry->filename, entry_obj-> in PHP_METHOD()
4821 zval_ptr_dtor(&entry_obj->entry->metadata); in PHP_METHOD()
4822 ZVAL_UNDEF(&entry_obj->entry->metadata); in PHP_METHOD()
4823 entry_obj->entry->is_modified = 1; in PHP_METHOD()
4824 entry_obj->entry->phar->is_modified = 1; in PHP_METHOD()
4826 phar_flush(entry_obj->entry->phar, 0, 0, 0, &error); in PHP_METHOD()
4858 if (entry_obj->entry->is_dir) { in PHP_METHOD()
4860 …contents, \"%s\" in phar \"%s\" is a directory", entry_obj->entry->filename, entry_obj->entry->pha… in PHP_METHOD()
4864 link = phar_get_link_source(entry_obj->entry); in PHP_METHOD()
4867 link = entry_obj->entry; in PHP_METHOD()
4872 …t retrieve contents, \"%s\" in phar \"%s\": %s", entry_obj->entry->filename, entry_obj->entry->pha… in PHP_METHOD()
4879 …not retrieve contents of \"%s\" in phar \"%s\"", entry_obj->entry->filename, entry_obj->entry->pha… in PHP_METHOD()
4906 if (entry_obj->entry->is_tar) { in PHP_METHOD()
4912 if (entry_obj->entry->is_dir) { in PHP_METHOD()
4918 if (PHAR_G(readonly) && !entry_obj->entry->phar->is_data) { in PHP_METHOD()
4924 if (entry_obj->entry->is_deleted) { in PHP_METHOD()
4930 if (entry_obj->entry->is_persistent) { in PHP_METHOD()
4931 phar_archive_data *phar = entry_obj->entry->phar; in PHP_METHOD()
4938 …entry_obj->entry = zend_hash_str_find_ptr(&phar->manifest, entry_obj->entry->filename, entry_obj-> in PHP_METHOD()
4942 if (entry_obj->entry->flags & PHAR_ENT_COMPRESSED_GZ) { in PHP_METHOD()
4946 if ((entry_obj->entry->flags & PHAR_ENT_COMPRESSED_BZ2) != 0) { in PHP_METHOD()
4954 if (SUCCESS != phar_open_entry_fp(entry_obj->entry, &error, 1)) { in PHP_METHOD()
4956 …phar \"%s\" in order to compress with gzip: %s", entry_obj->entry->filename, entry_obj->entry->pha… in PHP_METHOD()
4968 entry_obj->entry->old_flags = entry_obj->entry->flags; in PHP_METHOD()
4969 entry_obj->entry->flags &= ~PHAR_ENT_COMPRESSION_MASK; in PHP_METHOD()
4970 entry_obj->entry->flags |= PHAR_ENT_COMPRESSED_GZ; in PHP_METHOD()
4973 if (entry_obj->entry->flags & PHAR_ENT_COMPRESSED_BZ2) { in PHP_METHOD()
4977 if ((entry_obj->entry->flags & PHAR_ENT_COMPRESSED_GZ) != 0) { in PHP_METHOD()
4985 if (SUCCESS != phar_open_entry_fp(entry_obj->entry, &error, 1)) { in PHP_METHOD()
4987 …har \"%s\" in order to compress with bzip2: %s", entry_obj->entry->filename, entry_obj->entry->pha… in PHP_METHOD()
4998 entry_obj->entry->old_flags = entry_obj->entry->flags; in PHP_METHOD()
4999 entry_obj->entry->flags &= ~PHAR_ENT_COMPRESSION_MASK; in PHP_METHOD()
5000 entry_obj->entry->flags |= PHAR_ENT_COMPRESSED_BZ2; in PHP_METHOD()
5007 entry_obj->entry->phar->is_modified = 1; in PHP_METHOD()
5008 entry_obj->entry->is_modified = 1; in PHP_METHOD()
5009 phar_flush(entry_obj->entry->phar, 0, 0, 0, &error); in PHP_METHOD()
5033 if (entry_obj->entry->is_dir) { in PHP_METHOD()
5039 if ((entry_obj->entry->flags & PHAR_ENT_COMPRESSION_MASK) == 0) { in PHP_METHOD()
5043 if (PHAR_G(readonly) && !entry_obj->entry->phar->is_data) { in PHP_METHOD()
5049 if (entry_obj->entry->is_deleted) { in PHP_METHOD()
5055 if ((entry_obj->entry->flags & PHAR_ENT_COMPRESSED_GZ) != 0 && !PHAR_G(has_zlib)) { in PHP_METHOD()
5061 if ((entry_obj->entry->flags & PHAR_ENT_COMPRESSED_BZ2) != 0 && !PHAR_G(has_bz2)) { in PHP_METHOD()
5067 if (entry_obj->entry->is_persistent) { in PHP_METHOD()
5068 phar_archive_data *phar = entry_obj->entry->phar; in PHP_METHOD()
5075 …entry_obj->entry = zend_hash_str_find_ptr(&phar->manifest, entry_obj->entry->filename, entry_obj-> in PHP_METHOD()
5077 switch (entry_obj->entry->flags & PHAR_ENT_COMPRESSION_MASK) { in PHP_METHOD()
5090 if (SUCCESS != phar_open_entry_fp(entry_obj->entry, &error, 1)) { in PHP_METHOD()
5092 …le \"%s\" in phar \"%s\": %s", compression_type, entry_obj->entry->filename, entry_obj->entry->pha… in PHP_METHOD()
5097 entry_obj->entry->old_flags = entry_obj->entry->flags; in PHP_METHOD()
5098 entry_obj->entry->flags &= ~PHAR_ENT_COMPRESSION_MASK; in PHP_METHOD()
5099 entry_obj->entry->phar->is_modified = 1; in PHP_METHOD()
5100 entry_obj->entry->is_modified = 1; in PHP_METHOD()
5101 phar_flush(entry_obj->entry->phar, 0, 0, 0, &error); in PHP_METHOD()
5201 ZEND_ARG_INFO(0, entry)
5210 ZEND_ARG_INFO(0, entry)
5214 ZEND_ARG_INFO(0, entry)