Lines Matching refs:entry_obj

4462 	phar_entry_object *entry_obj;  in PHP_METHOD()  local
4471 entry_obj = (phar_entry_object*)((char*)Z_OBJ_P(zobj) - Z_OBJ_P(zobj)->handlers->offset); in PHP_METHOD()
4473 if (entry_obj->entry) { in PHP_METHOD()
4509 entry_obj->entry = entry_info; in PHP_METHOD()
4522 …phar_entry_object *entry_obj = (phar_entry_object*)((char*)Z_OBJ_P(zobj) - Z_OBJ_P(zobj)->handlers…
4523 if (!entry_obj->entry) { \
4535 …phar_entry_object *entry_obj = (phar_entry_object*)((char*)Z_OBJ_P(zobj) - Z_OBJ_P(zobj)->handlers… in PHP_METHOD() local
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 …emporary 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 … \"%s\" in phar \"%s\", write operations are prohibited", entry_obj->entry->filename, entry_obj->e… 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()
4679entry_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()
4782entry_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()
4835entry_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 …retrieve contents, \"%s\" in phar \"%s\" is a directory", entry_obj->entry->filename, entry_obj->e… in PHP_METHOD()
4880 link = phar_get_link_source(entry_obj->entry); in PHP_METHOD()
4883 link = entry_obj->entry; in PHP_METHOD()
4888 …or: Cannot retrieve contents, \"%s\" in phar \"%s\": %s", entry_obj->entry->filename, entry_obj->e… in PHP_METHOD()
4895 …rror: Cannot retrieve contents of \"%s\" in phar \"%s\"", entry_obj->entry->filename, entry_obj->e… 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()
4954entry_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 …"%s\" in phar \"%s\" in order to compress with gzip: %s", entry_obj->entry->filename, entry_obj->e… 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 …%s\" in phar \"%s\" in order to compress with bzip2: %s", entry_obj->entry->filename, entry_obj->e… 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()
5090entry_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 …phar error: Cannot open phar archive \"%s\" for reading", entry_obj->entry->filename, entry_obj->e… 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()