Lines Matching refs:entry

50 static void phar_mung_server_vars(char *fname, char *entry, int entry_len, char *basename, int requ…  in phar_mung_server_vars()  argument
70 if (code > entry_len && !memcmp(path_info, entry, entry_len)) { in phar_mung_server_vars()
78 zend_string *str = strpprintf(4096, "phar://%s%s", fname, entry); in phar_mung_server_vars()
118 ZVAL_STRINGL(stuff, entry, entry_len); in phar_mung_server_vars()
125 zend_string *str = strpprintf(4096, "phar://%s%s", fname, entry); in phar_mung_server_vars()
136 …chive_data *phar, phar_entry_info *info, char *mime_type, int code, char *entry, int entry_len, ch… in phar_file_action() argument
155 if (entry[0] == '/') { in phar_file_action()
156 spprintf(&name, 4096, "phar://%s%s", arch, entry); in phar_file_action()
158 spprintf(&name, 4096, "phar://%s/%s", arch, entry); in phar_file_action()
214 phar_mung_server_vars(arch, entry, entry_len, basename, ru_len); in phar_file_action()
218 if (entry[0] == '/') { in phar_file_action()
219 name_len = spprintf(&name, 4096, "phar://%s%s", arch, entry); in phar_file_action()
221 name_len = spprintf(&name, 4096, "phar://%s/%s", arch, entry); in phar_file_action()
235 if ((cwd = zend_memrchr(entry, '/', entry_len))) { in phar_file_action()
237 if (entry == cwd) { in phar_file_action()
241 } else if (entry[0] == '/') { in phar_file_action()
242 PHAR_G(cwd_len) = (int)(cwd - (entry + 1)); in phar_file_action()
243 PHAR_G(cwd) = estrndup(entry + 1, PHAR_G(cwd_len)); in phar_file_action()
245 PHAR_G(cwd_len) = (int)(cwd - entry); in phar_file_action()
246 PHAR_G(cwd) = estrndup(entry, PHAR_G(cwd_len)); in phar_file_action()
301 static void phar_do_403(char *entry, int entry_len) /* {{{ */ in phar_do_403() argument
315 …e_data *phar, char *fname, int fname_len, char *f404, int f404_len, char *entry, size_t entry_len)… in phar_do_404() argument
342 static void phar_postprocess_ru_web(char *fname, int fname_len, char **entry, int *entry_len, char … in phar_postprocess_ru_web() argument
344 char *e = *entry + 1, *u = NULL, *u1 = NULL, *saveu = NULL; in phar_postprocess_ru_web()
409 char *fname, *arch, *entry; in PHP_METHOD() local
420 …", 7) && SUCCESS == phar_split_fname(fname, fname_len, &arch, &arch_len, &entry, &entry_len, 2, 0)… in PHP_METHOD()
421 efree(entry); in PHP_METHOD()
446 char *fname, *arch = NULL, *entry = NULL, *path, *actual; in PHP_METHOD() local
466 …", 7) && SUCCESS == phar_split_fname(fname, fname_len, &arch, &arch_len, &entry, &entry_len, 2, 0)… in PHP_METHOD()
467 efree(entry); in PHP_METHOD()
468 entry = NULL; in PHP_METHOD()
493 if (path && path == entry) { in PHP_METHOD()
494 efree(entry); in PHP_METHOD()
504 if (entry && path && path == entry) { in PHP_METHOD()
505 efree(entry); in PHP_METHOD()
521 …} else if (SUCCESS == phar_split_fname(path, (int)path_len, &arch, &arch_len, &entry, &entry_len, … in PHP_METHOD()
522 path = entry; in PHP_METHOD()
544 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 = (int)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()
678 ZVAL_STRINGL(&params, entry, entry_len); in PHP_METHOD()
720 efree(entry); in PHP_METHOD()
725 entry = estrndup(Z_STRVAL_P(fci.retval), Z_STRLEN_P(fci.retval)); in PHP_METHOD()
730 phar_do_403(entry, entry_len); in PHP_METHOD()
751 phar_postprocess_ru_web(fname, (int)fname_len, &entry, &entry_len, &ru, &ru_len); in PHP_METHOD()
754 if (!entry_len || (entry_len == 1 && entry[0] == '/')) { in PHP_METHOD()
755 efree(entry); in PHP_METHOD()
758 entry = index_php; in PHP_METHOD()
760 if (entry[0] != '/') { in PHP_METHOD()
761 spprintf(&entry, 0, "/%s", index_php); in PHP_METHOD()
766 entry = estrndup("/index.php", sizeof("/index.php")); in PHP_METHOD()
771 (info = phar_get_entry_info(phar, entry, entry_len, NULL, 0)) == NULL) { in PHP_METHOD()
772 phar_do_404(phar, fname, (int)fname_len, f404, (int)f404_len, entry, entry_len); in PHP_METHOD()
796 ctr.line_len = spprintf(&(ctr.line), 4096, "Location: %s%s", path_info, entry + 1); in PHP_METHOD()
798 ctr.line_len = spprintf(&(ctr.line), 4096, "Location: %s%s", path_info, entry); in PHP_METHOD()
817 (info = phar_get_entry_info(phar, entry, entry_len, NULL, 0)) == NULL) { in PHP_METHOD()
818 phar_do_404(phar, fname, (int)fname_len, f404, (int)f404_len, entry, entry_len); in PHP_METHOD()
826 const char *ext = zend_memrchr(entry, '.', entry_len); in PHP_METHOD()
844 efree(entry); in PHP_METHOD()
861 efree(entry); in PHP_METHOD()
872 code = phar_file_type(&PHAR_G(mime_types), entry, &mime_type); in PHP_METHOD()
874 phar_file_action(phar, info, mime_type, code, entry, entry_len, fname, pt, ru, ru_len); in PHP_METHOD()
1146 char *fname, *alias = NULL, *error, *arch = NULL, *entry = NULL, *save_fname; in PHP_METHOD() local
1178 …if (SUCCESS == phar_split_fname(fname, (int)fname_len, &arch, &arch_len, &entry, &entry_len, !is_d… in PHP_METHOD()
1202 if (entry) { in PHP_METHOD()
1203 efree(entry); in PHP_METHOD()
1236 efree(entry); in PHP_METHOD()
1249 if (entry) { in PHP_METHOD()
1250 fname_len = spprintf(&fname, 0, "phar://%s%s", phar_data->fname, entry); in PHP_METHOD()
1251 efree(entry); in PHP_METHOD()
1330 char *fname, *error, *zname, *arch, *entry; in PHP_METHOD() local
1360 …", 7) && SUCCESS == phar_split_fname(zname, zname_len, &arch, &arch_len, &entry, &entry_len, 2, 0)… in PHP_METHOD()
1364 efree(entry); in PHP_METHOD()
1368 efree(entry); in PHP_METHOD()
1513 …len = (php_stat_len)spprintf(&fname, 0, "%s%c%s", test, DEFAULT_SLASH, intern->u.dir.entry.d_name); in phar_build()
1985 static int phar_copy_file_contents(phar_entry_info *entry, php_stream *fp) /* {{{ */ in phar_copy_file_contents() argument
1991 if (FAILURE == phar_open_entry_fp(entry, &error, 1)) { in phar_copy_file_contents()
1994 …phar archive \"%s\", unable to open entry \"%s\" contents: %s", entry->phar->fname, entry->filenam… in phar_copy_file_contents()
1998 …ert phar archive \"%s\", unable to open entry \"%s\" contents", entry->phar->fname, entry->filenam… in phar_copy_file_contents()
2004 phar_seek_efp(entry, 0, SEEK_SET, 0, 1); in phar_copy_file_contents()
2006 link = phar_get_link_source(entry); in phar_copy_file_contents()
2009 link = entry; in phar_copy_file_contents()
2014 …ert phar archive \"%s\", unable to copy entry \"%s\" contents", entry->phar->fname, entry->filenam… in phar_copy_file_contents()
2018 if (entry->fp_type == PHAR_MOD) { in phar_copy_file_contents()
2020 entry->cfp = entry->fp; in phar_copy_file_contents()
2021 entry->fp = NULL; in phar_copy_file_contents()
2025 entry->fp_type = PHAR_FP; in phar_copy_file_contents()
2026 entry->offset = offset; in phar_copy_file_contents()
2242 phar_entry_info *entry, newentry; in phar_convert_to_other() local
2289 ZEND_HASH_FOREACH_PTR(&source->manifest, entry) { in phar_convert_to_other()
2291 newentry = *entry; in phar_convert_to_other()
2324 newentry.tar_type = (entry->is_dir ? TAR_DIR : TAR_FILE); in phar_convert_to_other()
2620 phar_entry_info *entry; in PHP_METHOD() local
2638 …if (NULL != (entry = zend_hash_str_find_ptr(&phar_obj->archive->manifest, fname, (uint) fname_len)… in PHP_METHOD()
2639 if (entry->is_deleted) { in PHP_METHOD()
2643 entry->is_deleted = 1; in PHP_METHOD()
2644 entry->is_modified = 1; in PHP_METHOD()
3148 phar_entry_info *entry = (phar_entry_info *)Z_PTR_P(zv); in phar_set_compression() local
3151 if (entry->is_deleted) { in phar_set_compression()
3155 entry->old_flags = entry->flags; in phar_set_compression()
3156 entry->flags &= ~PHAR_ENT_COMPRESSION_MASK; in phar_set_compression()
3157 entry->flags |= compress; in phar_set_compression()
3158 entry->is_modified = 1; in phar_set_compression()
3165 phar_entry_info *entry = (phar_entry_info *)Z_PTR_P(zv); in phar_test_compression() local
3167 if (entry->is_deleted) { in phar_test_compression()
3172 if (entry->flags & PHAR_ENT_COMPRESSED_BZ2) { in phar_test_compression()
3178 if (entry->flags & PHAR_ENT_COMPRESSED_GZ) { in phar_test_compression()
3549 phar_entry_info *entry; in PHP_METHOD() local
3561 …if (NULL != (entry = zend_hash_str_find_ptr(&phar_obj->archive->manifest, fname, (uint) fname_len)… in PHP_METHOD()
3562 if (entry->is_deleted) { in PHP_METHOD()
3590 phar_entry_info *entry; in PHP_METHOD() local
3603 if (!(entry = phar_get_entry_info_dir(phar_obj->archive, fname, (int)fname_len, 1, &error, 0))) { in PHP_METHOD()
3621 if (entry->is_temp_dir) { in PHP_METHOD()
3622 efree(entry->filename); in PHP_METHOD()
3623 efree(entry); in PHP_METHOD()
3793 phar_entry_info *entry; in PHP_METHOD() local
3809 …if (NULL != (entry = zend_hash_str_find_ptr(&phar_obj->archive->manifest, fname, (uint) fname_len)… in PHP_METHOD()
3810 if (entry->is_deleted) { in PHP_METHOD()
3821 entry = zend_hash_str_find_ptr(&phar_obj->archive->manifest, fname, (uint) fname_len); in PHP_METHOD()
3823 entry->is_modified = 0; in PHP_METHOD()
3824 entry->is_deleted = 1; in PHP_METHOD()
4135 static int phar_extract_file(zend_bool overwrite, phar_entry_info *entry, char *dest, int dest_len,… in phar_extract_file() argument
4147 if (entry->is_mounted) { in phar_extract_file()
4152 …if (entry->filename_len >= sizeof(".phar")-1 && !memcmp(entry->filename, ".phar", sizeof(".phar")-… in phar_extract_file()
4160 if (virtual_file_ex(&new_state, entry->filename, NULL, CWD_EXPAND) != 0 || in phar_extract_file()
4162 if (EINVAL == errno && entry->filename_len > 50) { in phar_extract_file()
4163 char *tmp = estrndup(entry->filename, 50); in phar_extract_file()
4167 spprintf(error, 4096, "Cannot extract \"%s\", internal error", entry->filename); in phar_extract_file()
4193 if (entry->filename_len > 50) { in phar_extract_file()
4194 tmp = estrndup(entry->filename, 50); in phar_extract_file()
4198 …ract \"%s\" to \"%s...\", extracted filename is too long for filesystem", entry->filename, fullpat… in phar_extract_file()
4206 spprintf(error, 4096, "Cannot extract \"%s\", internal error", entry->filename); in phar_extract_file()
4213 … extract \"%s\" to \"%s\", openbasedir/safe mode restrictions in effect", entry->filename, fullpat… in phar_extract_file()
4221 …spprintf(error, 4096, "Cannot extract \"%s\" to \"%s\", path already exists", entry->filename, ful… in phar_extract_file()
4237 if (entry->is_dir) { in phar_extract_file()
4238 …if (!php_stream_mkdir(fullpath, entry->flags & PHAR_ENT_PERM_MASK, PHP_STREAM_MKDIR_RECURSIVE, NU… in phar_extract_file()
4239 …spprintf(error, 4096, "Cannot extract \"%s\", could not create directory \"%s\"", entry->filename,… in phar_extract_file()
4246 …spprintf(error, 4096, "Cannot extract \"%s\", could not create directory \"%s\"", entry->filename,… in phar_extract_file()
4263 if (entry->is_dir) { in phar_extract_file()
4271 …spprintf(error, 4096, "Cannot extract \"%s\", could not open for writing \"%s\"", entry->filename,… in phar_extract_file()
4276 if (!phar_get_efp(entry, 0)) { in phar_extract_file()
4277 if (FAILURE == phar_open_entry_fp(entry, error, 1)) { in phar_extract_file()
4279 …nnot extract \"%s\" to \"%s\", unable to open internal file pointer: %s", entry->filename, fullpat… in phar_extract_file()
4281 … "Cannot extract \"%s\" to \"%s\", unable to open internal file pointer", entry->filename, fullpat… in phar_extract_file()
4289 if (FAILURE == phar_seek_efp(entry, 0, SEEK_SET, 0, 0)) { in phar_extract_file()
4290 … "Cannot extract \"%s\" to \"%s\", unable to seek internal file pointer", entry->filename, fullpat… in phar_extract_file()
4296 …if (SUCCESS != php_stream_copy_to_stream_ex(phar_get_efp(entry, 0), fp, entry->uncompressed_filesi… in phar_extract_file()
4297 …spprintf(error, 4096, "Cannot extract \"%s\" to \"%s\", copying contents failed", entry->filename,… in phar_extract_file()
4304 mode = (mode_t) entry->flags & PHAR_ENT_PERM_MASK; in phar_extract_file()
4307 …spprintf(error, 4096, "Cannot extract \"%s\" to \"%s\", setting file permissions failed", entry->f… in phar_extract_file()
4325 phar_entry_info *entry; in PHP_METHOD() local
4400 if (NULL == (entry = zend_hash_find_ptr(&phar_obj->archive->manifest, Z_STR_P(zval_file)))) { in PHP_METHOD()
4404 if (FAILURE == phar_extract_file(overwrite, entry, pathto, (int)pathto_len, &error)) { in PHP_METHOD()
4419 …if (NULL == (entry = zend_hash_str_find_ptr(&phar_obj->archive->manifest, filename, filename_len))… in PHP_METHOD()
4425 if (FAILURE == phar_extract_file(overwrite, entry, pathto, (int)pathto_len, &error)) { in PHP_METHOD()
4440 ZEND_HASH_FOREACH_PTR(&phar->manifest, entry) { in PHP_METHOD()
4441 if (FAILURE == phar_extract_file(overwrite, entry, pathto, (int)pathto_len, &error)) { in PHP_METHOD()
4459 char *fname, *arch, *entry, *error; in PHP_METHOD() local
4473 if (entry_obj->entry) { in PHP_METHOD()
4478 …har://", 7) || phar_split_fname(fname, (int)fname_len, &arch, &arch_len, &entry, &entry_len, 2, 0)… in PHP_METHOD()
4486 efree(entry); in PHP_METHOD()
4498 if ((entry_info = phar_get_entry_info_dir(phar_data, entry, entry_len, 1, &error, 1)) == NULL) { in PHP_METHOD()
4500 …"Cannot access phar file entry '%s' in archive '%s'%s%s", entry, arch, error ? ", " : "", error ? … in PHP_METHOD()
4502 efree(entry); in PHP_METHOD()
4507 efree(entry); in PHP_METHOD()
4509 entry_obj->entry = entry_info; in PHP_METHOD()
4523 if (!entry_obj->entry) { \
4537 if (entry_obj->entry && entry_obj->entry->is_temp_dir) { in PHP_METHOD()
4538 if (entry_obj->entry->filename) { in PHP_METHOD()
4539 efree(entry_obj->entry->filename); in PHP_METHOD()
4540 entry_obj->entry->filename = NULL; in PHP_METHOD()
4543 efree(entry_obj->entry); in PHP_METHOD()
4544 entry_obj->entry = NULL; in PHP_METHOD()
4560 RETURN_LONG(entry_obj->entry->compressed_filesize); in PHP_METHOD()
4579 RETURN_BOOL(entry_obj->entry->flags & PHAR_ENT_COMPRESSION_MASK); in PHP_METHOD()
4581 RETURN_BOOL(entry_obj->entry->flags & PHAR_ENT_COMPRESSED_GZ); in PHP_METHOD()
4583 RETURN_BOOL(entry_obj->entry->flags & PHAR_ENT_COMPRESSED_BZ2); in PHP_METHOD()
4602 if (entry_obj->entry->is_dir) { in PHP_METHOD()
4608 if (entry_obj->entry->is_crc_checked) { in PHP_METHOD()
4609 RETURN_LONG(entry_obj->entry->crc32); in PHP_METHOD()
4628 RETURN_BOOL(entry_obj->entry->is_crc_checked); in PHP_METHOD()
4643 RETURN_LONG(entry_obj->entry->flags & ~(PHAR_ENT_PERM_MASK|PHAR_ENT_COMPRESSION_MASK)); in PHP_METHOD()
4656 if (entry_obj->entry->is_temp_dir) { in PHP_METHOD()
4658 …orary directory (not an actual entry in the archive), cannot chmod", entry_obj->entry->filename); \ in PHP_METHOD()
4662 if (PHAR_G(readonly) && !entry_obj->entry->phar->is_data) { in PHP_METHOD()
4663 …n phar \"%s\", write operations are prohibited", entry_obj->entry->filename, entry_obj->entry->pha… in PHP_METHOD()
4671 if (entry_obj->entry->is_persistent) { in PHP_METHOD()
4672 phar_archive_data *phar = entry_obj->entry->phar; in PHP_METHOD()
4679 …entry_obj->entry = zend_hash_str_find_ptr(&phar->manifest, entry_obj->entry->filename, entry_obj-> in PHP_METHOD()
4682 entry_obj->entry->flags &= ~PHAR_ENT_PERM_MASK; in PHP_METHOD()
4684 entry_obj->entry->flags |= perms; in PHP_METHOD()
4685 entry_obj->entry->old_flags = entry_obj->entry->flags; in PHP_METHOD()
4686 entry_obj->entry->phar->is_modified = 1; in PHP_METHOD()
4687 entry_obj->entry->is_modified = 1; in PHP_METHOD()
4701 phar_flush(entry_obj->entry->phar, 0, 0, 0, &error); in PHP_METHOD()
4721 RETURN_BOOL(Z_TYPE(entry_obj->entry->metadata) != IS_UNDEF); in PHP_METHOD()
4736 if (Z_TYPE(entry_obj->entry->metadata) != IS_UNDEF) { in PHP_METHOD()
4737 if (entry_obj->entry->is_persistent) { in PHP_METHOD()
4738 char *buf = estrndup((char *) Z_PTR(entry_obj->entry->metadata), entry_obj->entry->metadata_len); in PHP_METHOD()
4740 phar_parse_metadata(&buf, return_value, entry_obj->entry->metadata_len); in PHP_METHOD()
4743 ZVAL_COPY(return_value, &entry_obj->entry->metadata); in PHP_METHOD()
4759 if (PHAR_G(readonly) && !entry_obj->entry->phar->is_data) { in PHP_METHOD()
4764 if (entry_obj->entry->is_temp_dir) { in PHP_METHOD()
4774 if (entry_obj->entry->is_persistent) { in PHP_METHOD()
4775 phar_archive_data *phar = entry_obj->entry->phar; in PHP_METHOD()
4782 …entry_obj->entry = zend_hash_str_find_ptr(&phar->manifest, entry_obj->entry->filename, entry_obj-> in PHP_METHOD()
4784 if (Z_TYPE(entry_obj->entry->metadata) != IS_UNDEF) { in PHP_METHOD()
4785 zval_ptr_dtor(&entry_obj->entry->metadata); in PHP_METHOD()
4786 ZVAL_UNDEF(&entry_obj->entry->metadata); in PHP_METHOD()
4789 ZVAL_COPY(&entry_obj->entry->metadata, metadata); in PHP_METHOD()
4791 entry_obj->entry->is_modified = 1; in PHP_METHOD()
4792 entry_obj->entry->phar->is_modified = 1; in PHP_METHOD()
4793 phar_flush(entry_obj->entry->phar, 0, 0, 0, &error); in PHP_METHOD()
4815 if (PHAR_G(readonly) && !entry_obj->entry->phar->is_data) { in PHP_METHOD()
4820 if (entry_obj->entry->is_temp_dir) { in PHP_METHOD()
4826 if (Z_TYPE(entry_obj->entry->metadata) != IS_UNDEF) { in PHP_METHOD()
4827 if (entry_obj->entry->is_persistent) { in PHP_METHOD()
4828 phar_archive_data *phar = entry_obj->entry->phar; in PHP_METHOD()
4835 …entry_obj->entry = zend_hash_str_find_ptr(&phar->manifest, entry_obj->entry->filename, entry_obj-> in PHP_METHOD()
4837 zval_ptr_dtor(&entry_obj->entry->metadata); in PHP_METHOD()
4838 ZVAL_UNDEF(&entry_obj->entry->metadata); in PHP_METHOD()
4839 entry_obj->entry->is_modified = 1; in PHP_METHOD()
4840 entry_obj->entry->phar->is_modified = 1; in PHP_METHOD()
4842 phar_flush(entry_obj->entry->phar, 0, 0, 0, &error); in PHP_METHOD()
4874 if (entry_obj->entry->is_dir) { in PHP_METHOD()
4876 …contents, \"%s\" in phar \"%s\" is a directory", entry_obj->entry->filename, entry_obj->entry->pha… in PHP_METHOD()
4880 link = phar_get_link_source(entry_obj->entry); in PHP_METHOD()
4883 link = entry_obj->entry; in PHP_METHOD()
4888 …t retrieve contents, \"%s\" in phar \"%s\": %s", entry_obj->entry->filename, entry_obj->entry->pha… in PHP_METHOD()
4895 …not retrieve contents of \"%s\" in phar \"%s\"", entry_obj->entry->filename, entry_obj->entry->pha… in PHP_METHOD()
4922 if (entry_obj->entry->is_tar) { in PHP_METHOD()
4928 if (entry_obj->entry->is_dir) { in PHP_METHOD()
4934 if (PHAR_G(readonly) && !entry_obj->entry->phar->is_data) { in PHP_METHOD()
4940 if (entry_obj->entry->is_deleted) { in PHP_METHOD()
4946 if (entry_obj->entry->is_persistent) { in PHP_METHOD()
4947 phar_archive_data *phar = entry_obj->entry->phar; in PHP_METHOD()
4954 …entry_obj->entry = zend_hash_str_find_ptr(&phar->manifest, entry_obj->entry->filename, entry_obj-> in PHP_METHOD()
4958 if (entry_obj->entry->flags & PHAR_ENT_COMPRESSED_GZ) { in PHP_METHOD()
4962 if ((entry_obj->entry->flags & PHAR_ENT_COMPRESSED_BZ2) != 0) { in PHP_METHOD()
4970 if (SUCCESS != phar_open_entry_fp(entry_obj->entry, &error, 1)) { in PHP_METHOD()
4972 …phar \"%s\" in order to compress with gzip: %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_GZ; in PHP_METHOD()
4989 if (entry_obj->entry->flags & PHAR_ENT_COMPRESSED_BZ2) { in PHP_METHOD()
4993 if ((entry_obj->entry->flags & PHAR_ENT_COMPRESSED_GZ) != 0) { in PHP_METHOD()
5001 if (SUCCESS != phar_open_entry_fp(entry_obj->entry, &error, 1)) { in PHP_METHOD()
5003 …har \"%s\" in order to compress with bzip2: %s", entry_obj->entry->filename, entry_obj->entry->pha… in PHP_METHOD()
5014 entry_obj->entry->old_flags = entry_obj->entry->flags; in PHP_METHOD()
5015 entry_obj->entry->flags &= ~PHAR_ENT_COMPRESSION_MASK; in PHP_METHOD()
5016 entry_obj->entry->flags |= PHAR_ENT_COMPRESSED_BZ2; in PHP_METHOD()
5023 entry_obj->entry->phar->is_modified = 1; in PHP_METHOD()
5024 entry_obj->entry->is_modified = 1; in PHP_METHOD()
5025 phar_flush(entry_obj->entry->phar, 0, 0, 0, &error); in PHP_METHOD()
5048 if (entry_obj->entry->is_dir) { in PHP_METHOD()
5054 if ((entry_obj->entry->flags & PHAR_ENT_COMPRESSION_MASK) == 0) { in PHP_METHOD()
5058 if (PHAR_G(readonly) && !entry_obj->entry->phar->is_data) { in PHP_METHOD()
5064 if (entry_obj->entry->is_deleted) { in PHP_METHOD()
5070 if ((entry_obj->entry->flags & PHAR_ENT_COMPRESSED_GZ) != 0 && !PHAR_G(has_zlib)) { in PHP_METHOD()
5076 if ((entry_obj->entry->flags & PHAR_ENT_COMPRESSED_BZ2) != 0 && !PHAR_G(has_bz2)) { in PHP_METHOD()
5082 if (entry_obj->entry->is_persistent) { in PHP_METHOD()
5083 phar_archive_data *phar = entry_obj->entry->phar; in PHP_METHOD()
5090 …entry_obj->entry = zend_hash_str_find_ptr(&phar->manifest, entry_obj->entry->filename, entry_obj-> in PHP_METHOD()
5092 if (!entry_obj->entry->fp) { in PHP_METHOD()
5093 if (FAILURE == phar_open_archive_fp(entry_obj->entry->phar)) { in PHP_METHOD()
5094 …r: Cannot open phar archive \"%s\" for reading", entry_obj->entry->filename, entry_obj->entry->pha… in PHP_METHOD()
5097 entry_obj->entry->fp_type = PHAR_FP; in PHP_METHOD()
5100 entry_obj->entry->old_flags = entry_obj->entry->flags; in PHP_METHOD()
5101 entry_obj->entry->flags &= ~PHAR_ENT_COMPRESSION_MASK; in PHP_METHOD()
5102 entry_obj->entry->phar->is_modified = 1; in PHP_METHOD()
5103 entry_obj->entry->is_modified = 1; in PHP_METHOD()
5104 phar_flush(entry_obj->entry->phar, 0, 0, 0, &error); in PHP_METHOD()
5204 ZEND_ARG_INFO(0, entry)
5213 ZEND_ARG_INFO(0, entry)
5217 ZEND_ARG_INFO(0, entry)