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()
2244 phar_entry_info *entry, newentry; in phar_convert_to_other() local
2288 ZEND_HASH_MAP_FOREACH_PTR(&source->manifest, entry) { in phar_convert_to_other()
2290 newentry = *entry; in phar_convert_to_other()
2318 newentry.tar_type = (entry->is_dir ? TAR_DIR : TAR_FILE); in phar_convert_to_other()
2626 phar_entry_info *entry; in PHP_METHOD() local
2644 if (NULL != (entry = zend_hash_find_ptr(&phar_obj->archive->manifest, file_name))) { in PHP_METHOD()
2645 if (entry->is_deleted) { in PHP_METHOD()
2649 entry->is_deleted = 1; in PHP_METHOD()
2650 entry->is_modified = 1; in PHP_METHOD()
3150 phar_entry_info *entry = (phar_entry_info *)Z_PTR_P(zv); in phar_set_compression() local
3153 if (entry->is_deleted) { in phar_set_compression()
3157 entry->old_flags = entry->flags; in phar_set_compression()
3158 entry->flags &= ~PHAR_ENT_COMPRESSION_MASK; in phar_set_compression()
3159 entry->flags |= compress; in phar_set_compression()
3160 entry->is_modified = 1; in phar_set_compression()
3167 phar_entry_info *entry = (phar_entry_info *)Z_PTR_P(zv); in phar_test_compression() local
3169 if (entry->is_deleted) { in phar_test_compression()
3174 if (entry->flags & PHAR_ENT_COMPRESSED_BZ2) { in phar_test_compression()
3180 if (entry->flags & PHAR_ENT_COMPRESSED_GZ) { in phar_test_compression()
3538 phar_entry_info *entry; in PHP_METHOD() local
3547 if (NULL != (entry = zend_hash_find_ptr(&phar_obj->archive->manifest, file_name))) { in PHP_METHOD()
3548 if (entry->is_deleted) { in PHP_METHOD()
3573 phar_entry_info *entry; in PHP_METHOD() local
3583 …if (!(entry = phar_get_entry_info_dir(phar_obj->archive, ZSTR_VAL(file_name), ZSTR_LEN(file_name),… in PHP_METHOD()
3601 if (entry->is_temp_dir) { in PHP_METHOD()
3602 efree(entry->filename); in PHP_METHOD()
3603 efree(entry); in PHP_METHOD()
3800 phar_entry_info *entry; in PHP_METHOD() local
3814 if (NULL != (entry = zend_hash_find_ptr(&phar_obj->archive->manifest, file_name))) { in PHP_METHOD()
3815 if (entry->is_deleted) { in PHP_METHOD()
3826 entry = zend_hash_find_ptr(&phar_obj->archive->manifest, file_name); in PHP_METHOD()
3828 entry->is_modified = 0; in PHP_METHOD()
3829 entry->is_deleted = 1; in PHP_METHOD()
4144 static zend_result phar_extract_file(bool overwrite, phar_entry_info *entry, char *dest, size_t des… in phar_extract_file() argument
4156 if (entry->is_mounted) { in phar_extract_file()
4161 …if (entry->filename_len >= sizeof(".phar")-1 && !memcmp(entry->filename, ".phar", sizeof(".phar")-… in phar_extract_file()
4169 if (virtual_file_ex(&new_state, entry->filename, NULL, CWD_EXPAND) != 0 || in phar_extract_file()
4171 if (EINVAL == errno && entry->filename_len > 50) { in phar_extract_file()
4172 char *tmp = estrndup(entry->filename, 50); in phar_extract_file()
4176 spprintf(error, 4096, "Cannot extract \"%s\", internal error", entry->filename); in phar_extract_file()
4202 if (entry->filename_len > 50) { in phar_extract_file()
4203 tmp = estrndup(entry->filename, 50); in phar_extract_file()
4207 …ract \"%s\" to \"%s...\", extracted filename is too long for filesystem", entry->filename, fullpat… in phar_extract_file()
4215 spprintf(error, 4096, "Cannot extract \"%s\", internal error", entry->filename); in phar_extract_file()
4222 … extract \"%s\" to \"%s\", openbasedir/safe mode restrictions in effect", entry->filename, fullpat… in phar_extract_file()
4230 …spprintf(error, 4096, "Cannot extract \"%s\" to \"%s\", path already exists", entry->filename, ful… in phar_extract_file()
4246 if (entry->is_dir) { in phar_extract_file()
4247 …if (!php_stream_mkdir(fullpath, entry->flags & PHAR_ENT_PERM_MASK, PHP_STREAM_MKDIR_RECURSIVE, NU… in phar_extract_file()
4248 …spprintf(error, 4096, "Cannot extract \"%s\", could not create directory \"%s\"", entry->filename,… in phar_extract_file()
4255 …spprintf(error, 4096, "Cannot extract \"%s\", could not create directory \"%s\"", entry->filename,… in phar_extract_file()
4272 if (entry->is_dir) { in phar_extract_file()
4280 …spprintf(error, 4096, "Cannot extract \"%s\", could not open for writing \"%s\"", entry->filename,… in phar_extract_file()
4285 …if ((phar_get_fp_type(entry) == PHAR_FP && (entry->flags & PHAR_ENT_COMPRESSION_MASK)) || !phar_ge… in phar_extract_file()
4286 if (FAILURE == phar_open_entry_fp(entry, error, 1)) { in phar_extract_file()
4288 …nnot extract \"%s\" to \"%s\", unable to open internal file pointer: %s", entry->filename, fullpat… in phar_extract_file()
4290 … "Cannot extract \"%s\" to \"%s\", unable to open internal file pointer", entry->filename, fullpat… in phar_extract_file()
4298 if (-1 == phar_seek_efp(entry, 0, SEEK_SET, 0, 0)) { in phar_extract_file()
4299 … "Cannot extract \"%s\" to \"%s\", unable to seek internal file pointer", entry->filename, fullpat… in phar_extract_file()
4305 …if (SUCCESS != php_stream_copy_to_stream_ex(phar_get_efp(entry, 0), fp, entry->uncompressed_filesi… in phar_extract_file()
4306 …spprintf(error, 4096, "Cannot extract \"%s\" to \"%s\", copying contents failed", entry->filename,… in phar_extract_file()
4313 mode = (mode_t) entry->flags & PHAR_ENT_PERM_MASK; in phar_extract_file()
4316 …spprintf(error, 4096, "Cannot extract \"%s\" to \"%s\", setting file permissions failed", entry->f… in phar_extract_file()
4328 phar_entry_info *entry; in extract_helper() local
4332 ZEND_HASH_MAP_FOREACH_PTR(&archive->manifest, entry) { in extract_helper()
4333 if (FAILURE == phar_extract_file(overwrite, entry, pathto, pathto_len, error)) return -1; in extract_helper()
4338 ZEND_HASH_MAP_FOREACH_PTR(&archive->manifest, entry) { in extract_helper()
4339 if (0 != strncmp(ZSTR_VAL(search), entry->filename, ZSTR_LEN(search))) continue; in extract_helper()
4340 if (FAILURE == phar_extract_file(overwrite, entry, pathto, pathto_len, error)) return -1; in extract_helper()
4345 entry = zend_hash_find_ptr(&archive->manifest, search); in extract_helper()
4346 if (NULL == entry) return 0; in extract_helper()
4347 if (FAILURE == phar_extract_file(overwrite, entry, pathto, pathto_len, error)) return -1; in extract_helper()
4462 char *fname, *arch, *entry, *error; in PHP_METHOD() local
4476 if (entry_obj->entry) { in PHP_METHOD()
4481 …e, "phar://", 7) || phar_split_fname(fname, fname_len, &arch, &arch_len, &entry, &entry_len, 2, 0)… in PHP_METHOD()
4489 efree(entry); in PHP_METHOD()
4501 if ((entry_info = phar_get_entry_info_dir(phar_data, entry, entry_len, 1, &error, 1)) == NULL) { in PHP_METHOD()
4503 …"Cannot access phar file entry '%s' in archive '%s'%s%s", entry, arch, error ? ", " : "", error ? … in PHP_METHOD()
4505 efree(entry); in PHP_METHOD()
4510 efree(entry); in PHP_METHOD()
4512 entry_obj->entry = entry_info; in PHP_METHOD()
4526 if (!entry_obj->entry) { \
4542 if (entry_obj->entry && entry_obj->entry->is_temp_dir) { in PHP_METHOD()
4543 if (entry_obj->entry->filename) { in PHP_METHOD()
4544 efree(entry_obj->entry->filename); in PHP_METHOD()
4545 entry_obj->entry->filename = NULL; in PHP_METHOD()
4548 efree(entry_obj->entry); in PHP_METHOD()
4549 entry_obj->entry = NULL; in PHP_METHOD()
4563 RETURN_LONG(entry_obj->entry->compressed_filesize); in PHP_METHOD()
4580 RETURN_BOOL(entry_obj->entry->flags & PHAR_ENT_COMPRESSION_MASK); in PHP_METHOD()
4585 RETURN_BOOL(entry_obj->entry->flags & PHAR_ENT_COMPRESSION_MASK); in PHP_METHOD()
4587 RETURN_BOOL(entry_obj->entry->flags & PHAR_ENT_COMPRESSED_GZ); in PHP_METHOD()
4589 RETURN_BOOL(entry_obj->entry->flags & PHAR_ENT_COMPRESSED_BZ2); in PHP_METHOD()
4606 if (entry_obj->entry->is_dir) { in PHP_METHOD()
4612 if (entry_obj->entry->is_crc_checked) { in PHP_METHOD()
4613 RETURN_LONG(entry_obj->entry->crc32); in PHP_METHOD()
4630 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()
4659 if (entry_obj->entry->is_temp_dir) { in PHP_METHOD()
4661 …orary directory (not an actual entry in the archive), cannot chmod", entry_obj->entry->filename); \ in PHP_METHOD()
4665 if (PHAR_G(readonly) && !entry_obj->entry->phar->is_data) { in PHP_METHOD()
4666 …n phar \"%s\", write operations are prohibited", entry_obj->entry->filename, entry_obj->entry->pha… in PHP_METHOD()
4670 if (entry_obj->entry->is_persistent) { in PHP_METHOD()
4671 phar_archive_data *phar = entry_obj->entry->phar; in PHP_METHOD()
4678 …entry_obj->entry = zend_hash_str_find_ptr(&phar->manifest, entry_obj->entry->filename, entry_obj-> in PHP_METHOD()
4681 entry_obj->entry->flags &= ~PHAR_ENT_PERM_MASK; in PHP_METHOD()
4683 entry_obj->entry->flags |= perms; in PHP_METHOD()
4684 entry_obj->entry->old_flags = entry_obj->entry->flags; in PHP_METHOD()
4685 entry_obj->entry->phar->is_modified = 1; in PHP_METHOD()
4686 entry_obj->entry->is_modified = 1; in PHP_METHOD()
4700 phar_flush(entry_obj->entry->phar, &error); in PHP_METHOD()
4718 …RETURN_BOOL(phar_metadata_tracker_has_data(&entry_obj->entry->metadata_tracker, entry_obj->entry->… in PHP_METHOD()
4735 tracker = &entry_obj->entry->metadata_tracker; in PHP_METHOD()
4736 if (phar_metadata_tracker_has_data(tracker, entry_obj->entry->is_persistent)) { in PHP_METHOD()
4737 …phar_metadata_tracker_unserialize_or_copy(tracker, return_value, entry_obj->entry->is_persistent, … in PHP_METHOD()
4754 if (PHAR_G(readonly) && !entry_obj->entry->phar->is_data) { in PHP_METHOD()
4759 if (entry_obj->entry->is_temp_dir) { in PHP_METHOD()
4765 if (entry_obj->entry->is_persistent) { in PHP_METHOD()
4766 phar_archive_data *phar = entry_obj->entry->phar; in PHP_METHOD()
4773 …entry_obj->entry = zend_hash_str_find_ptr(&phar->manifest, entry_obj->entry->filename, entry_obj-> in PHP_METHOD()
4774 ZEND_ASSERT(!entry_obj->entry->is_persistent); /* Should no longer be persistent */ in PHP_METHOD()
4777 …if (serialize_metadata_or_throw(&entry_obj->entry->metadata_tracker, entry_obj->entry->is_persiste… in PHP_METHOD()
4781 entry_obj->entry->is_modified = 1; in PHP_METHOD()
4782 entry_obj->entry->phar->is_modified = 1; in PHP_METHOD()
4783 phar_flush(entry_obj->entry->phar, &error); in PHP_METHOD()
4803 if (PHAR_G(readonly) && !entry_obj->entry->phar->is_data) { in PHP_METHOD()
4808 if (entry_obj->entry->is_temp_dir) { in PHP_METHOD()
4814 …if (phar_metadata_tracker_has_data(&entry_obj->entry->metadata_tracker, entry_obj->entry->is_persi… in PHP_METHOD()
4815 if (entry_obj->entry->is_persistent) { in PHP_METHOD()
4816 phar_archive_data *phar = entry_obj->entry->phar; in PHP_METHOD()
4823 …entry_obj->entry = zend_hash_str_find_ptr(&phar->manifest, entry_obj->entry->filename, entry_obj-> in PHP_METHOD()
4826 phar_metadata_tracker_free(&entry_obj->entry->metadata_tracker, entry_obj->entry->is_persistent); in PHP_METHOD()
4827 entry_obj->entry->is_modified = 1; in PHP_METHOD()
4828 entry_obj->entry->phar->is_modified = 1; in PHP_METHOD()
4830 phar_flush(entry_obj->entry->phar, &error); in PHP_METHOD()
4860 if (entry_obj->entry->is_dir) { in PHP_METHOD()
4862 …contents, \"%s\" in phar \"%s\" is a directory", entry_obj->entry->filename, entry_obj->entry->pha… in PHP_METHOD()
4866 link = phar_get_link_source(entry_obj->entry); in PHP_METHOD()
4869 link = entry_obj->entry; in PHP_METHOD()
4874 …t retrieve contents, \"%s\" in phar \"%s\": %s", entry_obj->entry->filename, entry_obj->entry->pha… in PHP_METHOD()
4881 …not retrieve contents of \"%s\" in phar \"%s\"", entry_obj->entry->filename, entry_obj->entry->pha… in PHP_METHOD()
4907 if (entry_obj->entry->is_tar) { in PHP_METHOD()
4913 if (entry_obj->entry->is_dir) { in PHP_METHOD()
4919 if (PHAR_G(readonly) && !entry_obj->entry->phar->is_data) { in PHP_METHOD()
4925 if (entry_obj->entry->is_deleted) { in PHP_METHOD()
4931 if (entry_obj->entry->is_persistent) { in PHP_METHOD()
4932 phar_archive_data *phar = entry_obj->entry->phar; in PHP_METHOD()
4939 …entry_obj->entry = zend_hash_str_find_ptr(&phar->manifest, entry_obj->entry->filename, entry_obj-> in PHP_METHOD()
4943 if (entry_obj->entry->flags & PHAR_ENT_COMPRESSED_GZ) { in PHP_METHOD()
4947 if ((entry_obj->entry->flags & PHAR_ENT_COMPRESSED_BZ2) != 0) { in PHP_METHOD()
4955 if (SUCCESS != phar_open_entry_fp(entry_obj->entry, &error, 1)) { in PHP_METHOD()
4957 …phar \"%s\" in order to compress with gzip: %s", entry_obj->entry->filename, entry_obj->entry->pha… in PHP_METHOD()
4969 entry_obj->entry->old_flags = entry_obj->entry->flags; in PHP_METHOD()
4970 entry_obj->entry->flags &= ~PHAR_ENT_COMPRESSION_MASK; in PHP_METHOD()
4971 entry_obj->entry->flags |= PHAR_ENT_COMPRESSED_GZ; in PHP_METHOD()
4974 if (entry_obj->entry->flags & PHAR_ENT_COMPRESSED_BZ2) { in PHP_METHOD()
4978 if ((entry_obj->entry->flags & PHAR_ENT_COMPRESSED_GZ) != 0) { in PHP_METHOD()
4986 if (SUCCESS != phar_open_entry_fp(entry_obj->entry, &error, 1)) { in PHP_METHOD()
4988 …har \"%s\" in order to compress with bzip2: %s", entry_obj->entry->filename, entry_obj->entry->pha… in PHP_METHOD()
4999 entry_obj->entry->old_flags = entry_obj->entry->flags; in PHP_METHOD()
5000 entry_obj->entry->flags &= ~PHAR_ENT_COMPRESSION_MASK; in PHP_METHOD()
5001 entry_obj->entry->flags |= PHAR_ENT_COMPRESSED_BZ2; in PHP_METHOD()
5008 entry_obj->entry->phar->is_modified = 1; in PHP_METHOD()
5009 entry_obj->entry->is_modified = 1; in PHP_METHOD()
5010 phar_flush(entry_obj->entry->phar, &error); in PHP_METHOD()
5034 if (entry_obj->entry->is_dir) { in PHP_METHOD()
5040 if ((entry_obj->entry->flags & PHAR_ENT_COMPRESSION_MASK) == 0) { in PHP_METHOD()
5044 if (PHAR_G(readonly) && !entry_obj->entry->phar->is_data) { in PHP_METHOD()
5050 if (entry_obj->entry->is_deleted) { in PHP_METHOD()
5056 if ((entry_obj->entry->flags & PHAR_ENT_COMPRESSED_GZ) != 0 && !PHAR_G(has_zlib)) { in PHP_METHOD()
5062 if ((entry_obj->entry->flags & PHAR_ENT_COMPRESSED_BZ2) != 0 && !PHAR_G(has_bz2)) { in PHP_METHOD()
5068 if (entry_obj->entry->is_persistent) { in PHP_METHOD()
5069 phar_archive_data *phar = entry_obj->entry->phar; in PHP_METHOD()
5076 …entry_obj->entry = zend_hash_str_find_ptr(&phar->manifest, entry_obj->entry->filename, entry_obj-> in PHP_METHOD()
5078 switch (entry_obj->entry->flags & PHAR_ENT_COMPRESSION_MASK) { in PHP_METHOD()
5091 if (SUCCESS != phar_open_entry_fp(entry_obj->entry, &error, 1)) { in PHP_METHOD()
5093 …le \"%s\" in phar \"%s\": %s", compression_type, entry_obj->entry->filename, entry_obj->entry->pha… in PHP_METHOD()
5098 entry_obj->entry->old_flags = entry_obj->entry->flags; in PHP_METHOD()
5099 entry_obj->entry->flags &= ~PHAR_ENT_COMPRESSION_MASK; in PHP_METHOD()
5100 entry_obj->entry->phar->is_modified = 1; in PHP_METHOD()
5101 entry_obj->entry->is_modified = 1; in PHP_METHOD()
5102 phar_flush(entry_obj->entry->phar, &error); in PHP_METHOD()