Lines Matching refs:entry
59 static void phar_mung_server_vars(char *fname, char *entry, int entry_len, char *basename, int requ… in phar_mung_server_vars() argument
80 if (Z_STRLEN_PP(stuff) > entry_len && !memcmp(Z_STRVAL_PP(stuff), entry, entry_len)) { in phar_mung_server_vars()
93 Z_STRLEN_PP(stuff) = spprintf(&(Z_STRVAL_PP(stuff)), 4096, "phar://%s%s", fname, entry); in phar_mung_server_vars()
141 ZVAL_STRINGL(*stuff, entry, entry_len, 1); in phar_mung_server_vars()
154 Z_STRLEN_PP(stuff) = spprintf(&(Z_STRVAL_PP(stuff)), 4096, "phar://%s%s", fname, entry); in phar_mung_server_vars()
165 …chive_data *phar, phar_entry_info *info, char *mime_type, int code, char *entry, int entry_len, ch… in phar_file_action() argument
183 if (entry[0] == '/') { in phar_file_action()
184 name_len = spprintf(&name, 4096, "phar://%s%s", arch, entry); in phar_file_action()
186 name_len = spprintf(&name, 4096, "phar://%s/%s", arch, entry); in phar_file_action()
242 phar_mung_server_vars(arch, entry, entry_len, basename, ru_len TSRMLS_CC); in phar_file_action()
246 if (entry[0] == '/') { in phar_file_action()
247 name_len = spprintf(&name, 4096, "phar://%s%s", arch, entry); in phar_file_action()
249 name_len = spprintf(&name, 4096, "phar://%s/%s", arch, entry); in phar_file_action()
262 if ((cwd = zend_memrchr(entry, '/', entry_len))) { in phar_file_action()
264 if (entry == cwd) { in phar_file_action()
268 } else if (entry[0] == '/') { in phar_file_action()
269 PHAR_G(cwd_len) = cwd - (entry + 1); in phar_file_action()
270 PHAR_G(cwd) = estrndup(entry + 1, PHAR_G(cwd_len)); in phar_file_action()
272 PHAR_G(cwd_len) = cwd - entry; in phar_file_action()
273 PHAR_G(cwd) = estrndup(entry, PHAR_G(cwd_len)); in phar_file_action()
333 static void phar_do_403(char *entry, int entry_len TSRMLS_DC) /* {{{ */ in phar_do_403() argument
343 PHPWRITE(entry, entry_len); in phar_do_403()
348 …e_data *phar, char *fname, int fname_len, char *f404, int f404_len, char *entry, int entry_len TSR… in phar_do_404() argument
368 PHPWRITE(entry, entry_len); in phar_do_404()
376 static void phar_postprocess_ru_web(char *fname, int fname_len, char **entry, int *entry_len, char … in phar_postprocess_ru_web() argument
378 char *e = *entry + 1, *u = NULL, *u1 = NULL, *saveu = NULL; in phar_postprocess_ru_web()
443 char *fname, *arch, *entry; in PHP_METHOD() local
454 …", 7) && SUCCESS == phar_split_fname(fname, fname_len, &arch, &arch_len, &entry, &entry_len, 2, 0 … in PHP_METHOD()
455 efree(entry); in PHP_METHOD()
477 char *fname, *arch = NULL, *entry = NULL, *path, *actual; in PHP_METHOD() local
492 …", 7) && SUCCESS == phar_split_fname(fname, fname_len, &arch, &arch_len, &entry, &entry_len, 2, 0 … in PHP_METHOD()
493 efree(entry); in PHP_METHOD()
494 entry = NULL; in PHP_METHOD()
519 if (path && path == entry) { in PHP_METHOD()
520 efree(entry); in PHP_METHOD()
530 if (entry && path && path == entry) { in PHP_METHOD()
531 efree(entry); in PHP_METHOD()
547 …} else if (SUCCESS == phar_split_fname(path, path_len, &arch, &arch_len, &entry, &entry_len, 2, 0 … in PHP_METHOD()
548 path = entry; in PHP_METHOD()
569 char *fname, *path_info, *mime_type = NULL, *entry, *pt; in PHP_METHOD() local
625 entry = estrndup(Z_STRVAL_PP(z_path_info), entry_len); in PHP_METHOD()
628 memcpy(path_info + Z_STRLEN_PP(z_script_name), entry, entry_len + 1); in PHP_METHOD()
632 entry = estrndup("", 0); in PHP_METHOD()
650 entry = path_info; in PHP_METHOD()
651 entry_len = strlen(entry); in PHP_METHOD()
657 entry = estrndup("", 0); in PHP_METHOD()
674 entry = estrndup(pt + (fname_len - (basename - fname)), entry_len); in PHP_METHOD()
686 ZVAL_STRINGL(params, entry, entry_len, 1); in PHP_METHOD()
726 efree(entry); in PHP_METHOD()
729 entry = estrndup(Z_STRVAL_PP(fci.retval_ptr_ptr), Z_STRLEN_PP(fci.retval_ptr_ptr)); in PHP_METHOD()
732 entry = Z_STRVAL_P(retval_ptr); in PHP_METHOD()
738 phar_do_403(entry, entry_len TSRMLS_CC); in PHP_METHOD()
759 phar_postprocess_ru_web(fname, fname_len, &entry, &entry_len, &ru, &ru_len TSRMLS_CC); in PHP_METHOD()
762 if (!entry_len || (entry_len == 1 && entry[0] == '/')) { in PHP_METHOD()
763 efree(entry); in PHP_METHOD()
766 entry = index_php; in PHP_METHOD()
768 if (entry[0] != '/') { in PHP_METHOD()
769 spprintf(&entry, 0, "/%s", index_php); in PHP_METHOD()
774 entry = estrndup("/index.php", sizeof("/index.php")); in PHP_METHOD()
779 (info = phar_get_entry_info(phar, entry, entry_len, NULL, 0 TSRMLS_CC)) == NULL) { in PHP_METHOD()
780 phar_do_404(phar, fname, fname_len, f404, f404_len, entry, entry_len TSRMLS_CC); in PHP_METHOD()
804 ctr.line_len = spprintf(&(ctr.line), 4096, "Location: %s%s", path_info, entry + 1); in PHP_METHOD()
806 ctr.line_len = spprintf(&(ctr.line), 4096, "Location: %s%s", path_info, entry); in PHP_METHOD()
825 (info = phar_get_entry_info(phar, entry, entry_len, NULL, 0 TSRMLS_CC)) == NULL) { in PHP_METHOD()
826 phar_do_404(phar, fname, fname_len, f404, f404_len, entry, entry_len TSRMLS_CC); in PHP_METHOD()
834 const char *ext = zend_memrchr(entry, '.', entry_len); in PHP_METHOD()
870 code = phar_file_type(&PHAR_G(mime_types), entry, &mime_type TSRMLS_CC); in PHP_METHOD()
872 …ret = phar_file_action(phar, info, mime_type, code, entry, entry_len, fname, pt, ru, ru_len TSRMLS… in PHP_METHOD()
1144 char *fname, *alias = NULL, *error, *arch = NULL, *entry = NULL, *save_fname; in PHP_METHOD()
1172 …if (SUCCESS == phar_split_fname(fname, fname_len, &arch, &arch_len, &entry, &entry_len, !is_data, … in PHP_METHOD()
1196 if (entry) { in PHP_METHOD()
1197 efree(entry); in PHP_METHOD()
1230 efree(entry); in PHP_METHOD()
1243 if (entry) { in PHP_METHOD()
1244 fname_len = spprintf(&fname, 0, "phar://%s%s", phar_data->fname, entry); in PHP_METHOD()
1245 efree(entry); in PHP_METHOD()
1325 char *fname, *error, *zname, *arch, *entry; in PHP_METHOD() local
1351 …", 7) && SUCCESS == phar_split_fname(zname, zname_len, &arch, &arch_len, &entry, &entry_len, 2, 0 … in PHP_METHOD()
1355 efree(entry); in PHP_METHOD()
1359 efree(entry); in PHP_METHOD()
1497 fname_len = spprintf(&fname, 0, "%s%c%s", test, DEFAULT_SLASH, intern->u.dir.entry.d_name); in phar_build()
1974 static int phar_copy_file_contents(phar_entry_info *entry, php_stream *fp TSRMLS_DC) /* {{{ */ in phar_copy_file_contents() argument
1980 if (FAILURE == phar_open_entry_fp(entry, &error, 1 TSRMLS_CC)) { in phar_copy_file_contents()
1983 …phar archive \"%s\", unable to open entry \"%s\" contents: %s", entry->phar->fname, entry->filenam… in phar_copy_file_contents()
1987 …ert phar archive \"%s\", unable to open entry \"%s\" contents", entry->phar->fname, entry->filenam… in phar_copy_file_contents()
1993 phar_seek_efp(entry, 0, SEEK_SET, 0, 1 TSRMLS_CC); in phar_copy_file_contents()
1995 link = phar_get_link_source(entry TSRMLS_CC); in phar_copy_file_contents()
1998 link = entry; in phar_copy_file_contents()
2003 …ert phar archive \"%s\", unable to copy entry \"%s\" contents", entry->phar->fname, entry->filenam… in phar_copy_file_contents()
2007 if (entry->fp_type == PHAR_MOD) { in phar_copy_file_contents()
2009 entry->cfp = entry->fp; in phar_copy_file_contents()
2010 entry->fp = NULL; in phar_copy_file_contents()
2014 entry->fp_type = PHAR_FP; in phar_copy_file_contents()
2015 entry->offset = offset; in phar_copy_file_contents()
2222 phar_entry_info *entry, newentry; in phar_convert_to_other() local
2278 if (FAILURE == zend_hash_get_current_data(&source->manifest, (void **) &entry)) { in phar_convert_to_other()
2287 newentry = *entry; in phar_convert_to_other()
2328 newentry.tar_type = (entry->is_dir ? TAR_DIR : TAR_FILE); in phar_convert_to_other()
2622 phar_entry_info *entry; in PHP_METHOD() local
2640 …ESS == zend_hash_find(&phar_obj->arc.archive->manifest, fname, (uint) fname_len, (void**)&entry)) { in PHP_METHOD()
2641 if (entry->is_deleted) { in PHP_METHOD()
2645 entry->is_deleted = 1; in PHP_METHOD()
2646 entry->is_modified = 1; in PHP_METHOD()
3141 phar_entry_info *entry = (phar_entry_info *)pDest; in phar_set_compression() local
3144 if (entry->is_deleted) { in phar_set_compression()
3148 entry->old_flags = entry->flags; in phar_set_compression()
3149 entry->flags &= ~PHAR_ENT_COMPRESSION_MASK; in phar_set_compression()
3150 entry->flags |= compress; in phar_set_compression()
3151 entry->is_modified = 1; in phar_set_compression()
3158 phar_entry_info *entry = (phar_entry_info *)pDest; in phar_test_compression() local
3160 if (entry->is_deleted) { in phar_test_compression()
3165 if (entry->flags & PHAR_ENT_COMPRESSED_BZ2) { in phar_test_compression()
3171 if (entry->flags & PHAR_ENT_COMPRESSED_GZ) { in phar_test_compression()
3545 phar_entry_info *entry; in PHP_METHOD() local
3554 …ESS == zend_hash_find(&phar_obj->arc.archive->manifest, fname, (uint) fname_len, (void**)&entry)) { in PHP_METHOD()
3555 if (entry->is_deleted) { in PHP_METHOD()
3583 phar_entry_info *entry; in PHP_METHOD() local
3591 …if (!(entry = phar_get_entry_info_dir(phar_obj->arc.archive, fname, fname_len, 1, &error, 0 TSRMLS… in PHP_METHOD()
3609 if (entry->is_temp_dir) { in PHP_METHOD()
3610 efree(entry->filename); in PHP_METHOD()
3611 efree(entry); in PHP_METHOD()
3765 phar_entry_info *entry; in PHP_METHOD() local
3778 …ESS == zend_hash_find(&phar_obj->arc.archive->manifest, fname, (uint) fname_len, (void**)&entry)) { in PHP_METHOD()
3779 if (entry->is_deleted) { in PHP_METHOD()
3790 zend_hash_find(&phar_obj->arc.archive->manifest, fname, (uint) fname_len, (void **)&entry); in PHP_METHOD()
3792 entry->is_modified = 0; in PHP_METHOD()
3793 entry->is_deleted = 1; in PHP_METHOD()
4112 static int phar_extract_file(zend_bool overwrite, phar_entry_info *entry, char *dest, int dest_len,… in phar_extract_file() argument
4124 if (entry->is_mounted) { in phar_extract_file()
4129 …if (entry->filename_len >= sizeof(".phar")-1 && !memcmp(entry->filename, ".phar", sizeof(".phar")-… in phar_extract_file()
4137 if (virtual_file_ex(&new_state, entry->filename, NULL, CWD_EXPAND TSRMLS_CC) != 0 || in phar_extract_file()
4139 if (EINVAL == errno && entry->filename_len > 50) { in phar_extract_file()
4140 char *tmp = estrndup(entry->filename, 50); in phar_extract_file()
4144 spprintf(error, 4096, "Cannot extract \"%s\", internal error", entry->filename); in phar_extract_file()
4170 if (entry->filename_len > 50) { in phar_extract_file()
4171 tmp = estrndup(entry->filename, 50); in phar_extract_file()
4175 …ract \"%s\" to \"%s...\", extracted filename is too long for filesystem", entry->filename, fullpat… in phar_extract_file()
4183 spprintf(error, 4096, "Cannot extract \"%s\", internal error", entry->filename); in phar_extract_file()
4190 … extract \"%s\" to \"%s\", openbasedir/safe mode restrictions in effect", entry->filename, fullpat… in phar_extract_file()
4198 …spprintf(error, 4096, "Cannot extract \"%s\" to \"%s\", path already exists", entry->filename, ful… in phar_extract_file()
4214 if (entry->is_dir) { in phar_extract_file()
4215 …if (!php_stream_mkdir(fullpath, entry->flags & PHAR_ENT_PERM_MASK, PHP_STREAM_MKDIR_RECURSIVE, NU… in phar_extract_file()
4216 …spprintf(error, 4096, "Cannot extract \"%s\", could not create directory \"%s\"", entry->filename,… in phar_extract_file()
4223 …spprintf(error, 4096, "Cannot extract \"%s\", could not create directory \"%s\"", entry->filename,… in phar_extract_file()
4240 if (entry->is_dir) { in phar_extract_file()
4252 …spprintf(error, 4096, "Cannot extract \"%s\", could not open for writing \"%s\"", entry->filename,… in phar_extract_file()
4257 if (!phar_get_efp(entry, 0 TSRMLS_CC)) { in phar_extract_file()
4258 if (FAILURE == phar_open_entry_fp(entry, error, 1 TSRMLS_CC)) { in phar_extract_file()
4260 …nnot extract \"%s\" to \"%s\", unable to open internal file pointer: %s", entry->filename, fullpat… in phar_extract_file()
4262 … "Cannot extract \"%s\" to \"%s\", unable to open internal file pointer", entry->filename, fullpat… in phar_extract_file()
4270 if (FAILURE == phar_seek_efp(entry, 0, SEEK_SET, 0, 0 TSRMLS_CC)) { in phar_extract_file()
4271 … "Cannot extract \"%s\" to \"%s\", unable to seek internal file pointer", entry->filename, fullpat… in phar_extract_file()
4277 …if (SUCCESS != phar_stream_copy_to_stream(phar_get_efp(entry, 0 TSRMLS_CC), fp, entry->uncompresse… in phar_extract_file()
4278 …spprintf(error, 4096, "Cannot extract \"%s\" to \"%s\", copying contents failed", entry->filename,… in phar_extract_file()
4285 mode = (mode_t) entry->flags & PHAR_ENT_PERM_MASK; in phar_extract_file()
4288 …spprintf(error, 4096, "Cannot extract \"%s\" to \"%s\", setting file permissions failed", entry->f… in phar_extract_file()
4306 phar_entry_info *entry; in PHP_METHOD() local
4382 …har_obj->arc.archive->manifest, Z_STRVAL_PP(zval_file), Z_STRLEN_PP(zval_file), (void **)&entry)) { in PHP_METHOD()
4386 if (FAILURE == phar_extract_file(overwrite, entry, pathto, pathto_len, &error TSRMLS_CC)) { in PHP_METHOD()
4401 …URE == zend_hash_find(&phar_obj->arc.archive->manifest, filename, filename_len, (void **)&entry)) { in PHP_METHOD()
4407 if (FAILURE == phar_extract_file(overwrite, entry, pathto, pathto_len, &error TSRMLS_CC)) { in PHP_METHOD()
4426 if (zend_hash_get_current_data(&phar->manifest, (void **)&entry) == FAILURE) { in PHP_METHOD()
4430 if (FAILURE == phar_extract_file(overwrite, entry, pathto, pathto_len, &error TSRMLS_CC)) { in PHP_METHOD()
4448 char *fname, *arch, *entry, *error; in PHP_METHOD() local
4461 if (entry_obj->ent.entry) { in PHP_METHOD()
4466 …e, "phar://", 7) || phar_split_fname(fname, fname_len, &arch, &arch_len, &entry, &entry_len, 2, 0 … in PHP_METHOD()
4474 efree(entry); in PHP_METHOD()
4486 …if ((entry_info = phar_get_entry_info_dir(phar_data, entry, entry_len, 1, &error, 1 TSRMLS_CC)) ==… in PHP_METHOD()
4488 …"Cannot access phar file entry '%s' in archive '%s'%s%s", entry, arch, error ? ", " : "", error ? … in PHP_METHOD()
4490 efree(entry); in PHP_METHOD()
4495 efree(entry); in PHP_METHOD()
4497 entry_obj->ent.entry = entry_info; in PHP_METHOD()
4509 if (!entry_obj->ent.entry) { \
4522 if (entry_obj->ent.entry && entry_obj->ent.entry->is_temp_dir) { in PHP_METHOD()
4523 if (entry_obj->ent.entry->filename) { in PHP_METHOD()
4524 efree(entry_obj->ent.entry->filename); in PHP_METHOD()
4525 entry_obj->ent.entry->filename = NULL; in PHP_METHOD()
4528 efree(entry_obj->ent.entry); in PHP_METHOD()
4529 entry_obj->ent.entry = NULL; in PHP_METHOD()
4545 RETURN_LONG(entry_obj->ent.entry->compressed_filesize); in PHP_METHOD()
4564 RETURN_BOOL(entry_obj->ent.entry->flags & PHAR_ENT_COMPRESSION_MASK); in PHP_METHOD()
4566 RETURN_BOOL(entry_obj->ent.entry->flags & PHAR_ENT_COMPRESSED_GZ); in PHP_METHOD()
4568 RETURN_BOOL(entry_obj->ent.entry->flags & PHAR_ENT_COMPRESSED_BZ2); in PHP_METHOD()
4587 if (entry_obj->ent.entry->is_dir) { in PHP_METHOD()
4593 if (entry_obj->ent.entry->is_crc_checked) { in PHP_METHOD()
4594 RETURN_LONG(entry_obj->ent.entry->crc32); in PHP_METHOD()
4613 RETURN_BOOL(entry_obj->ent.entry->is_crc_checked); in PHP_METHOD()
4628 RETURN_LONG(entry_obj->ent.entry->flags & ~(PHAR_ENT_PERM_MASK|PHAR_ENT_COMPRESSION_MASK)); in PHP_METHOD()
4641 if (entry_obj->ent.entry->is_temp_dir) { in PHP_METHOD()
4643 …y directory (not an actual entry in the archive), cannot chmod", entry_obj->ent.entry->filename); \ in PHP_METHOD()
4647 if (PHAR_G(readonly) && !entry_obj->ent.entry->phar->is_data) { in PHP_METHOD()
4648 … \"%s\", write operations are prohibited", entry_obj->ent.entry->filename, entry_obj->ent.entry->p… in PHP_METHOD()
4656 if (entry_obj->ent.entry->is_persistent) { in PHP_METHOD()
4657 phar_archive_data *phar = entry_obj->ent.entry->phar; in PHP_METHOD()
4664 …nd(&phar->manifest, entry_obj->ent.entry->filename, entry_obj->ent.entry->filename_len, (void **)&… in PHP_METHOD()
4667 entry_obj->ent.entry->flags &= ~PHAR_ENT_PERM_MASK; in PHP_METHOD()
4669 entry_obj->ent.entry->flags |= perms; in PHP_METHOD()
4670 entry_obj->ent.entry->old_flags = entry_obj->ent.entry->flags; in PHP_METHOD()
4671 entry_obj->ent.entry->phar->is_modified = 1; in PHP_METHOD()
4672 entry_obj->ent.entry->is_modified = 1; in PHP_METHOD()
4686 phar_flush(entry_obj->ent.entry->phar, 0, 0, 0, &error TSRMLS_CC); in PHP_METHOD()
4706 RETURN_BOOL(entry_obj->ent.entry->metadata != NULL); in PHP_METHOD()
4721 if (entry_obj->ent.entry->metadata) { in PHP_METHOD()
4722 if (entry_obj->ent.entry->is_persistent) { in PHP_METHOD()
4724 … char *buf = estrndup((char *) entry_obj->ent.entry->metadata, entry_obj->ent.entry->metadata_len); in PHP_METHOD()
4726 phar_parse_metadata(&buf, &ret, entry_obj->ent.entry->metadata_len TSRMLS_CC); in PHP_METHOD()
4730 RETURN_ZVAL(entry_obj->ent.entry->metadata, 1, 0); in PHP_METHOD()
4745 if (PHAR_G(readonly) && !entry_obj->ent.entry->phar->is_data) { in PHP_METHOD()
4750 if (entry_obj->ent.entry->is_temp_dir) { in PHP_METHOD()
4760 if (entry_obj->ent.entry->is_persistent) { in PHP_METHOD()
4761 phar_archive_data *phar = entry_obj->ent.entry->phar; in PHP_METHOD()
4768 …nd(&phar->manifest, entry_obj->ent.entry->filename, entry_obj->ent.entry->filename_len, (void **)&… in PHP_METHOD()
4770 if (entry_obj->ent.entry->metadata) { in PHP_METHOD()
4771 zval_ptr_dtor(&entry_obj->ent.entry->metadata); in PHP_METHOD()
4772 entry_obj->ent.entry->metadata = NULL; in PHP_METHOD()
4775 MAKE_STD_ZVAL(entry_obj->ent.entry->metadata); in PHP_METHOD()
4776 ZVAL_ZVAL(entry_obj->ent.entry->metadata, metadata, 1, 0); in PHP_METHOD()
4778 entry_obj->ent.entry->is_modified = 1; in PHP_METHOD()
4779 entry_obj->ent.entry->phar->is_modified = 1; in PHP_METHOD()
4780 phar_flush(entry_obj->ent.entry->phar, 0, 0, 0, &error TSRMLS_CC); in PHP_METHOD()
4802 if (PHAR_G(readonly) && !entry_obj->ent.entry->phar->is_data) { in PHP_METHOD()
4807 if (entry_obj->ent.entry->is_temp_dir) { in PHP_METHOD()
4813 if (entry_obj->ent.entry->metadata) { in PHP_METHOD()
4814 if (entry_obj->ent.entry->is_persistent) { in PHP_METHOD()
4815 phar_archive_data *phar = entry_obj->ent.entry->phar; in PHP_METHOD()
4822 …nd(&phar->manifest, entry_obj->ent.entry->filename, entry_obj->ent.entry->filename_len, (void **)&… in PHP_METHOD()
4824 zval_ptr_dtor(&entry_obj->ent.entry->metadata); in PHP_METHOD()
4825 entry_obj->ent.entry->metadata = NULL; in PHP_METHOD()
4826 entry_obj->ent.entry->is_modified = 1; in PHP_METHOD()
4827 entry_obj->ent.entry->phar->is_modified = 1; in PHP_METHOD()
4829 phar_flush(entry_obj->ent.entry->phar, 0, 0, 0, &error TSRMLS_CC); in PHP_METHOD()
4860 if (entry_obj->ent.entry->is_dir) { in PHP_METHOD()
4862 …ts, \"%s\" in phar \"%s\" is a directory", entry_obj->ent.entry->filename, entry_obj->ent.entry->p… in PHP_METHOD()
4866 link = phar_get_link_source(entry_obj->ent.entry TSRMLS_CC); in PHP_METHOD()
4869 link = entry_obj->ent.entry; in PHP_METHOD()
4874 …ieve contents, \"%s\" in phar \"%s\": %s", entry_obj->ent.entry->filename, entry_obj->ent.entry->p… in PHP_METHOD()
4881 …trieve contents of \"%s\" in phar \"%s\"", entry_obj->ent.entry->filename, entry_obj->ent.entry->p… in PHP_METHOD()
4909 if (entry_obj->ent.entry->is_tar) { in PHP_METHOD()
4915 if (entry_obj->ent.entry->is_dir) { in PHP_METHOD()
4921 if (PHAR_G(readonly) && !entry_obj->ent.entry->phar->is_data) { in PHP_METHOD()
4927 if (entry_obj->ent.entry->is_deleted) { in PHP_METHOD()
4933 if (entry_obj->ent.entry->is_persistent) { in PHP_METHOD()
4934 phar_archive_data *phar = entry_obj->ent.entry->phar; in PHP_METHOD()
4941 …nd(&phar->manifest, entry_obj->ent.entry->filename, entry_obj->ent.entry->filename_len, (void **)&… in PHP_METHOD()
4945 if (entry_obj->ent.entry->flags & PHAR_ENT_COMPRESSED_GZ) { in PHP_METHOD()
4949 if ((entry_obj->ent.entry->flags & PHAR_ENT_COMPRESSED_BZ2) != 0) { in PHP_METHOD()
4957 if (SUCCESS != phar_open_entry_fp(entry_obj->ent.entry, &error, 1 TSRMLS_CC)) { in PHP_METHOD()
4959 …"%s\" in order to compress with gzip: %s", entry_obj->ent.entry->filename, entry_obj->ent.entry->p… in PHP_METHOD()
4971 entry_obj->ent.entry->old_flags = entry_obj->ent.entry->flags; in PHP_METHOD()
4972 entry_obj->ent.entry->flags &= ~PHAR_ENT_COMPRESSION_MASK; in PHP_METHOD()
4973 entry_obj->ent.entry->flags |= PHAR_ENT_COMPRESSED_GZ; in PHP_METHOD()
4976 if (entry_obj->ent.entry->flags & PHAR_ENT_COMPRESSED_BZ2) { in PHP_METHOD()
4980 if ((entry_obj->ent.entry->flags & PHAR_ENT_COMPRESSED_GZ) != 0) { in PHP_METHOD()
4988 if (SUCCESS != phar_open_entry_fp(entry_obj->ent.entry, &error, 1 TSRMLS_CC)) { in PHP_METHOD()
4990 …%s\" in order to compress with bzip2: %s", entry_obj->ent.entry->filename, entry_obj->ent.entry->p… in PHP_METHOD()
5001 entry_obj->ent.entry->old_flags = entry_obj->ent.entry->flags; in PHP_METHOD()
5002 entry_obj->ent.entry->flags &= ~PHAR_ENT_COMPRESSION_MASK; in PHP_METHOD()
5003 entry_obj->ent.entry->flags |= PHAR_ENT_COMPRESSED_BZ2; in PHP_METHOD()
5010 entry_obj->ent.entry->phar->is_modified = 1; in PHP_METHOD()
5011 entry_obj->ent.entry->is_modified = 1; in PHP_METHOD()
5012 phar_flush(entry_obj->ent.entry->phar, 0, 0, 0, &error TSRMLS_CC); in PHP_METHOD()
5035 if (entry_obj->ent.entry->is_dir) { in PHP_METHOD()
5041 if ((entry_obj->ent.entry->flags & PHAR_ENT_COMPRESSION_MASK) == 0) { in PHP_METHOD()
5045 if (PHAR_G(readonly) && !entry_obj->ent.entry->phar->is_data) { in PHP_METHOD()
5051 if (entry_obj->ent.entry->is_deleted) { in PHP_METHOD()
5057 if ((entry_obj->ent.entry->flags & PHAR_ENT_COMPRESSED_GZ) != 0 && !PHAR_G(has_zlib)) { in PHP_METHOD()
5063 if ((entry_obj->ent.entry->flags & PHAR_ENT_COMPRESSED_BZ2) != 0 && !PHAR_G(has_bz2)) { in PHP_METHOD()
5069 if (entry_obj->ent.entry->is_persistent) { in PHP_METHOD()
5070 phar_archive_data *phar = entry_obj->ent.entry->phar; in PHP_METHOD()
5077 …nd(&phar->manifest, entry_obj->ent.entry->filename, entry_obj->ent.entry->filename_len, (void **)&… in PHP_METHOD()
5079 if (!entry_obj->ent.entry->fp) { in PHP_METHOD()
5080 if (FAILURE == phar_open_archive_fp(entry_obj->ent.entry->phar TSRMLS_CC)) { in PHP_METHOD()
5081 …not open phar archive \"%s\" for reading", entry_obj->ent.entry->filename, entry_obj->ent.entry->p… in PHP_METHOD()
5084 entry_obj->ent.entry->fp_type = PHAR_FP; in PHP_METHOD()
5087 entry_obj->ent.entry->old_flags = entry_obj->ent.entry->flags; in PHP_METHOD()
5088 entry_obj->ent.entry->flags &= ~PHAR_ENT_COMPRESSION_MASK; in PHP_METHOD()
5089 entry_obj->ent.entry->phar->is_modified = 1; in PHP_METHOD()
5090 entry_obj->ent.entry->is_modified = 1; in PHP_METHOD()
5091 phar_flush(entry_obj->ent.entry->phar, 0, 0, 0, &error TSRMLS_CC); in PHP_METHOD()
5214 ZEND_ARG_INFO(0, entry)
5225 ZEND_ARG_INFO(0, entry)
5230 ZEND_ARG_INFO(0, entry)