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(¶ms, 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()
1514 fname_len = spprintf(&fname, 0, "%s%c%s", test, DEFAULT_SLASH, intern->u.dir.entry.d_name); in phar_build()
1996 static int phar_copy_file_contents(phar_entry_info *entry, php_stream *fp) /* {{{ */ in phar_copy_file_contents() argument
2002 if (FAILURE == phar_open_entry_fp(entry, &error, 1)) { in phar_copy_file_contents()
2005 …phar archive \"%s\", unable to open entry \"%s\" contents: %s", entry->phar->fname, entry->filenam… in phar_copy_file_contents()
2009 …ert phar archive \"%s\", unable to open entry \"%s\" contents", entry->phar->fname, entry->filenam… in phar_copy_file_contents()
2015 phar_seek_efp(entry, 0, SEEK_SET, 0, 1); in phar_copy_file_contents()
2017 link = phar_get_link_source(entry); in phar_copy_file_contents()
2020 link = entry; in phar_copy_file_contents()
2025 …ert phar archive \"%s\", unable to copy entry \"%s\" contents", entry->phar->fname, entry->filenam… in phar_copy_file_contents()
2029 if (entry->fp_type == PHAR_MOD) { in phar_copy_file_contents()
2031 entry->cfp = entry->fp; in phar_copy_file_contents()
2032 entry->fp = NULL; in phar_copy_file_contents()
2036 entry->fp_type = PHAR_FP; in phar_copy_file_contents()
2037 entry->offset = offset; in phar_copy_file_contents()
2300 phar_entry_info *entry, newentry; in phar_convert_to_other() local
2347 ZEND_HASH_FOREACH_PTR(&source->manifest, entry) { in phar_convert_to_other()
2349 newentry = *entry; in phar_convert_to_other()
2382 newentry.tar_type = (entry->is_dir ? TAR_DIR : TAR_FILE); in phar_convert_to_other()
2678 phar_entry_info *entry; in PHP_METHOD() local
2696 …if (NULL != (entry = zend_hash_str_find_ptr(&phar_obj->archive->manifest, fname, (uint32_t) fname_… in PHP_METHOD()
2697 if (entry->is_deleted) { in PHP_METHOD()
2701 entry->is_deleted = 1; in PHP_METHOD()
2702 entry->is_modified = 1; in PHP_METHOD()
3206 phar_entry_info *entry = (phar_entry_info *)Z_PTR_P(zv); in phar_set_compression() local
3209 if (entry->is_deleted) { in phar_set_compression()
3213 entry->old_flags = entry->flags; in phar_set_compression()
3214 entry->flags &= ~PHAR_ENT_COMPRESSION_MASK; in phar_set_compression()
3215 entry->flags |= compress; in phar_set_compression()
3216 entry->is_modified = 1; in phar_set_compression()
3223 phar_entry_info *entry = (phar_entry_info *)Z_PTR_P(zv); in phar_test_compression() local
3225 if (entry->is_deleted) { in phar_test_compression()
3230 if (entry->flags & PHAR_ENT_COMPRESSED_BZ2) { in phar_test_compression()
3236 if (entry->flags & PHAR_ENT_COMPRESSED_GZ) { in phar_test_compression()
3607 phar_entry_info *entry; in PHP_METHOD() local
3619 …if (NULL != (entry = zend_hash_str_find_ptr(&phar_obj->archive->manifest, fname, (uint32_t) fname_… in PHP_METHOD()
3620 if (entry->is_deleted) { in PHP_METHOD()
3648 phar_entry_info *entry; in PHP_METHOD() local
3661 if (!(entry = phar_get_entry_info_dir(phar_obj->archive, fname, (int)fname_len, 1, &error, 0))) { in PHP_METHOD()
3679 if (entry->is_temp_dir) { in PHP_METHOD()
3680 efree(entry->filename); in PHP_METHOD()
3681 efree(entry); in PHP_METHOD()
3851 phar_entry_info *entry; in PHP_METHOD() local
3867 …if (NULL != (entry = zend_hash_str_find_ptr(&phar_obj->archive->manifest, fname, (uint32_t) fname_… in PHP_METHOD()
3868 if (entry->is_deleted) { in PHP_METHOD()
3879 entry = zend_hash_str_find_ptr(&phar_obj->archive->manifest, fname, (uint32_t) fname_len); in PHP_METHOD()
3881 entry->is_modified = 0; in PHP_METHOD()
3882 entry->is_deleted = 1; in PHP_METHOD()
4193 static int phar_extract_file(zend_bool overwrite, phar_entry_info *entry, char *dest, int dest_len,… in phar_extract_file() argument
4205 if (entry->is_mounted) { in phar_extract_file()
4210 …if (entry->filename_len >= sizeof(".phar")-1 && !memcmp(entry->filename, ".phar", sizeof(".phar")-… in phar_extract_file()
4218 if (virtual_file_ex(&new_state, entry->filename, NULL, CWD_EXPAND) != 0 || in phar_extract_file()
4220 if (EINVAL == errno && entry->filename_len > 50) { in phar_extract_file()
4221 char *tmp = estrndup(entry->filename, 50); in phar_extract_file()
4225 spprintf(error, 4096, "Cannot extract \"%s\", internal error", entry->filename); in phar_extract_file()
4251 if (entry->filename_len > 50) { in phar_extract_file()
4252 tmp = estrndup(entry->filename, 50); in phar_extract_file()
4256 …ract \"%s\" to \"%s...\", extracted filename is too long for filesystem", entry->filename, fullpat… in phar_extract_file()
4264 spprintf(error, 4096, "Cannot extract \"%s\", internal error", entry->filename); in phar_extract_file()
4271 … extract \"%s\" to \"%s\", openbasedir/safe mode restrictions in effect", entry->filename, fullpat… in phar_extract_file()
4279 …spprintf(error, 4096, "Cannot extract \"%s\" to \"%s\", path already exists", entry->filename, ful… in phar_extract_file()
4295 if (entry->is_dir) { in phar_extract_file()
4296 …if (!php_stream_mkdir(fullpath, entry->flags & PHAR_ENT_PERM_MASK, PHP_STREAM_MKDIR_RECURSIVE, NU… in phar_extract_file()
4297 …spprintf(error, 4096, "Cannot extract \"%s\", could not create directory \"%s\"", entry->filename,… in phar_extract_file()
4304 …spprintf(error, 4096, "Cannot extract \"%s\", could not create directory \"%s\"", entry->filename,… in phar_extract_file()
4321 if (entry->is_dir) { in phar_extract_file()
4329 …spprintf(error, 4096, "Cannot extract \"%s\", could not open for writing \"%s\"", entry->filename,… in phar_extract_file()
4334 if (!phar_get_efp(entry, 0)) { in phar_extract_file()
4335 if (FAILURE == phar_open_entry_fp(entry, error, 1)) { in phar_extract_file()
4337 …nnot extract \"%s\" to \"%s\", unable to open internal file pointer: %s", entry->filename, fullpat… in phar_extract_file()
4339 … "Cannot extract \"%s\" to \"%s\", unable to open internal file pointer", entry->filename, fullpat… in phar_extract_file()
4347 if (FAILURE == phar_seek_efp(entry, 0, SEEK_SET, 0, 0)) { in phar_extract_file()
4348 … "Cannot extract \"%s\" to \"%s\", unable to seek internal file pointer", entry->filename, fullpat… in phar_extract_file()
4354 …if (SUCCESS != php_stream_copy_to_stream_ex(phar_get_efp(entry, 0), fp, entry->uncompressed_filesi… in phar_extract_file()
4355 …spprintf(error, 4096, "Cannot extract \"%s\" to \"%s\", copying contents failed", entry->filename,… in phar_extract_file()
4362 mode = (mode_t) entry->flags & PHAR_ENT_PERM_MASK; in phar_extract_file()
4365 …spprintf(error, 4096, "Cannot extract \"%s\" to \"%s\", setting file permissions failed", entry->f… in phar_extract_file()
4377 phar_entry_info *entry; in extract_helper() local
4381 ZEND_HASH_FOREACH_PTR(&archive->manifest, entry) { in extract_helper()
4382 if (FAILURE == phar_extract_file(overwrite, entry, pathto, (int)pathto_len, error)) return -1; in extract_helper()
4387 ZEND_HASH_FOREACH_PTR(&archive->manifest, entry) { in extract_helper()
4388 if (0 != strncmp(ZSTR_VAL(search), entry->filename, ZSTR_LEN(search))) continue; in extract_helper()
4389 if (FAILURE == phar_extract_file(overwrite, entry, pathto, (int)pathto_len, error)) return -1; in extract_helper()
4394 entry = zend_hash_find_ptr(&archive->manifest, search); in extract_helper()
4395 if (NULL == entry) return 0; in extract_helper()
4396 if (FAILURE == phar_extract_file(overwrite, entry, pathto, (int)pathto_len, error)) return -1; in extract_helper()
4529 char *fname, *arch, *entry, *error; in PHP_METHOD() local
4543 if (entry_obj->entry) { in PHP_METHOD()
4548 …har://", 7) || phar_split_fname(fname, (int)fname_len, &arch, &arch_len, &entry, &entry_len, 2, 0)… in PHP_METHOD()
4556 efree(entry); in PHP_METHOD()
4568 if ((entry_info = phar_get_entry_info_dir(phar_data, entry, entry_len, 1, &error, 1)) == NULL) { in PHP_METHOD()
4570 …"Cannot access phar file entry '%s' in archive '%s'%s%s", entry, arch, error ? ", " : "", error ? … in PHP_METHOD()
4572 efree(entry); in PHP_METHOD()
4577 efree(entry); in PHP_METHOD()
4579 entry_obj->entry = entry_info; in PHP_METHOD()
4593 if (!entry_obj->entry) { \
4607 if (entry_obj->entry && entry_obj->entry->is_temp_dir) { in PHP_METHOD()
4608 if (entry_obj->entry->filename) { in PHP_METHOD()
4609 efree(entry_obj->entry->filename); in PHP_METHOD()
4610 entry_obj->entry->filename = NULL; in PHP_METHOD()
4613 efree(entry_obj->entry); in PHP_METHOD()
4614 entry_obj->entry = NULL; in PHP_METHOD()
4630 RETURN_LONG(entry_obj->entry->compressed_filesize); in PHP_METHOD()
4649 RETURN_BOOL(entry_obj->entry->flags & PHAR_ENT_COMPRESSION_MASK); in PHP_METHOD()
4651 RETURN_BOOL(entry_obj->entry->flags & PHAR_ENT_COMPRESSED_GZ); in PHP_METHOD()
4653 RETURN_BOOL(entry_obj->entry->flags & PHAR_ENT_COMPRESSED_BZ2); in PHP_METHOD()
4672 if (entry_obj->entry->is_dir) { in PHP_METHOD()
4678 if (entry_obj->entry->is_crc_checked) { in PHP_METHOD()
4679 RETURN_LONG(entry_obj->entry->crc32); in PHP_METHOD()
4698 RETURN_BOOL(entry_obj->entry->is_crc_checked); in PHP_METHOD()
4713 RETURN_LONG(entry_obj->entry->flags & ~(PHAR_ENT_PERM_MASK|PHAR_ENT_COMPRESSION_MASK)); in PHP_METHOD()
4726 if (entry_obj->entry->is_temp_dir) { in PHP_METHOD()
4728 …orary directory (not an actual entry in the archive), cannot chmod", entry_obj->entry->filename); \ in PHP_METHOD()
4732 if (PHAR_G(readonly) && !entry_obj->entry->phar->is_data) { in PHP_METHOD()
4733 …n phar \"%s\", write operations are prohibited", entry_obj->entry->filename, entry_obj->entry->pha… in PHP_METHOD()
4741 if (entry_obj->entry->is_persistent) { in PHP_METHOD()
4742 phar_archive_data *phar = entry_obj->entry->phar; in PHP_METHOD()
4749 …entry_obj->entry = zend_hash_str_find_ptr(&phar->manifest, entry_obj->entry->filename, entry_obj->… in PHP_METHOD()
4752 entry_obj->entry->flags &= ~PHAR_ENT_PERM_MASK; in PHP_METHOD()
4754 entry_obj->entry->flags |= perms; in PHP_METHOD()
4755 entry_obj->entry->old_flags = entry_obj->entry->flags; in PHP_METHOD()
4756 entry_obj->entry->phar->is_modified = 1; in PHP_METHOD()
4757 entry_obj->entry->is_modified = 1; in PHP_METHOD()
4771 phar_flush(entry_obj->entry->phar, 0, 0, 0, &error); in PHP_METHOD()
4791 RETURN_BOOL(Z_TYPE(entry_obj->entry->metadata) != IS_UNDEF); in PHP_METHOD()
4806 if (Z_TYPE(entry_obj->entry->metadata) != IS_UNDEF) { in PHP_METHOD()
4807 if (entry_obj->entry->is_persistent) { in PHP_METHOD()
4808 char *buf = estrndup((char *) Z_PTR(entry_obj->entry->metadata), entry_obj->entry->metadata_len); in PHP_METHOD()
4810 phar_parse_metadata(&buf, return_value, entry_obj->entry->metadata_len); in PHP_METHOD()
4813 ZVAL_COPY(return_value, &entry_obj->entry->metadata); in PHP_METHOD()
4829 if (PHAR_G(readonly) && !entry_obj->entry->phar->is_data) { in PHP_METHOD()
4834 if (entry_obj->entry->is_temp_dir) { in PHP_METHOD()
4844 if (entry_obj->entry->is_persistent) { in PHP_METHOD()
4845 phar_archive_data *phar = entry_obj->entry->phar; in PHP_METHOD()
4852 …entry_obj->entry = zend_hash_str_find_ptr(&phar->manifest, entry_obj->entry->filename, entry_obj->… in PHP_METHOD()
4854 if (Z_TYPE(entry_obj->entry->metadata) != IS_UNDEF) { in PHP_METHOD()
4855 zval_ptr_dtor(&entry_obj->entry->metadata); in PHP_METHOD()
4856 ZVAL_UNDEF(&entry_obj->entry->metadata); in PHP_METHOD()
4859 ZVAL_COPY(&entry_obj->entry->metadata, metadata); in PHP_METHOD()
4861 entry_obj->entry->is_modified = 1; in PHP_METHOD()
4862 entry_obj->entry->phar->is_modified = 1; in PHP_METHOD()
4863 phar_flush(entry_obj->entry->phar, 0, 0, 0, &error); in PHP_METHOD()
4885 if (PHAR_G(readonly) && !entry_obj->entry->phar->is_data) { in PHP_METHOD()
4890 if (entry_obj->entry->is_temp_dir) { in PHP_METHOD()
4896 if (Z_TYPE(entry_obj->entry->metadata) != IS_UNDEF) { in PHP_METHOD()
4897 if (entry_obj->entry->is_persistent) { in PHP_METHOD()
4898 phar_archive_data *phar = entry_obj->entry->phar; in PHP_METHOD()
4905 …entry_obj->entry = zend_hash_str_find_ptr(&phar->manifest, entry_obj->entry->filename, entry_obj->… in PHP_METHOD()
4907 zval_ptr_dtor(&entry_obj->entry->metadata); in PHP_METHOD()
4908 ZVAL_UNDEF(&entry_obj->entry->metadata); in PHP_METHOD()
4909 entry_obj->entry->is_modified = 1; in PHP_METHOD()
4910 entry_obj->entry->phar->is_modified = 1; in PHP_METHOD()
4912 phar_flush(entry_obj->entry->phar, 0, 0, 0, &error); in PHP_METHOD()
4944 if (entry_obj->entry->is_dir) { in PHP_METHOD()
4946 …contents, \"%s\" in phar \"%s\" is a directory", entry_obj->entry->filename, entry_obj->entry->pha… in PHP_METHOD()
4950 link = phar_get_link_source(entry_obj->entry); in PHP_METHOD()
4953 link = entry_obj->entry; in PHP_METHOD()
4958 …t retrieve contents, \"%s\" in phar \"%s\": %s", entry_obj->entry->filename, entry_obj->entry->pha… in PHP_METHOD()
4965 …not retrieve contents of \"%s\" in phar \"%s\"", entry_obj->entry->filename, entry_obj->entry->pha… in PHP_METHOD()
4992 if (entry_obj->entry->is_tar) { in PHP_METHOD()
4998 if (entry_obj->entry->is_dir) { in PHP_METHOD()
5004 if (PHAR_G(readonly) && !entry_obj->entry->phar->is_data) { in PHP_METHOD()
5010 if (entry_obj->entry->is_deleted) { in PHP_METHOD()
5016 if (entry_obj->entry->is_persistent) { in PHP_METHOD()
5017 phar_archive_data *phar = entry_obj->entry->phar; in PHP_METHOD()
5024 …entry_obj->entry = zend_hash_str_find_ptr(&phar->manifest, entry_obj->entry->filename, entry_obj->… in PHP_METHOD()
5028 if (entry_obj->entry->flags & PHAR_ENT_COMPRESSED_GZ) { in PHP_METHOD()
5032 if ((entry_obj->entry->flags & PHAR_ENT_COMPRESSED_BZ2) != 0) { in PHP_METHOD()
5040 if (SUCCESS != phar_open_entry_fp(entry_obj->entry, &error, 1)) { in PHP_METHOD()
5042 …phar \"%s\" in order to compress with gzip: %s", entry_obj->entry->filename, entry_obj->entry->pha… in PHP_METHOD()
5054 entry_obj->entry->old_flags = entry_obj->entry->flags; in PHP_METHOD()
5055 entry_obj->entry->flags &= ~PHAR_ENT_COMPRESSION_MASK; in PHP_METHOD()
5056 entry_obj->entry->flags |= PHAR_ENT_COMPRESSED_GZ; in PHP_METHOD()
5059 if (entry_obj->entry->flags & PHAR_ENT_COMPRESSED_BZ2) { in PHP_METHOD()
5063 if ((entry_obj->entry->flags & PHAR_ENT_COMPRESSED_GZ) != 0) { in PHP_METHOD()
5071 if (SUCCESS != phar_open_entry_fp(entry_obj->entry, &error, 1)) { in PHP_METHOD()
5073 …har \"%s\" in order to compress with bzip2: %s", entry_obj->entry->filename, entry_obj->entry->pha… in PHP_METHOD()
5084 entry_obj->entry->old_flags = entry_obj->entry->flags; in PHP_METHOD()
5085 entry_obj->entry->flags &= ~PHAR_ENT_COMPRESSION_MASK; in PHP_METHOD()
5086 entry_obj->entry->flags |= PHAR_ENT_COMPRESSED_BZ2; in PHP_METHOD()
5093 entry_obj->entry->phar->is_modified = 1; in PHP_METHOD()
5094 entry_obj->entry->is_modified = 1; in PHP_METHOD()
5095 phar_flush(entry_obj->entry->phar, 0, 0, 0, &error); in PHP_METHOD()
5118 if (entry_obj->entry->is_dir) { in PHP_METHOD()
5124 if ((entry_obj->entry->flags & PHAR_ENT_COMPRESSION_MASK) == 0) { in PHP_METHOD()
5128 if (PHAR_G(readonly) && !entry_obj->entry->phar->is_data) { in PHP_METHOD()
5134 if (entry_obj->entry->is_deleted) { in PHP_METHOD()
5140 if ((entry_obj->entry->flags & PHAR_ENT_COMPRESSED_GZ) != 0 && !PHAR_G(has_zlib)) { in PHP_METHOD()
5146 if ((entry_obj->entry->flags & PHAR_ENT_COMPRESSED_BZ2) != 0 && !PHAR_G(has_bz2)) { in PHP_METHOD()
5152 if (entry_obj->entry->is_persistent) { in PHP_METHOD()
5153 phar_archive_data *phar = entry_obj->entry->phar; in PHP_METHOD()
5160 …entry_obj->entry = zend_hash_str_find_ptr(&phar->manifest, entry_obj->entry->filename, entry_obj->… in PHP_METHOD()
5162 if (!entry_obj->entry->fp) { in PHP_METHOD()
5163 if (FAILURE == phar_open_archive_fp(entry_obj->entry->phar)) { in PHP_METHOD()
5164 …r: Cannot open phar archive \"%s\" for reading", entry_obj->entry->filename, entry_obj->entry->pha… in PHP_METHOD()
5167 entry_obj->entry->fp_type = PHAR_FP; in PHP_METHOD()
5170 entry_obj->entry->old_flags = entry_obj->entry->flags; in PHP_METHOD()
5171 entry_obj->entry->flags &= ~PHAR_ENT_COMPRESSION_MASK; in PHP_METHOD()
5172 entry_obj->entry->phar->is_modified = 1; in PHP_METHOD()
5173 entry_obj->entry->is_modified = 1; in PHP_METHOD()
5174 phar_flush(entry_obj->entry->phar, 0, 0, 0, &error); in PHP_METHOD()
5274 ZEND_ARG_INFO(0, entry)
5283 ZEND_ARG_INFO(0, entry)
5287 ZEND_ARG_INFO(0, entry)