Lines Matching refs:entry_obj

4532 	phar_entry_object *entry_obj;  in PHP_METHOD()  local
4541 entry_obj = (phar_entry_object*)((char*)Z_OBJ_P(zobj) - Z_OBJ_P(zobj)->handlers->offset); in PHP_METHOD()
4543 if (entry_obj->entry) { in PHP_METHOD()
4579 entry_obj->entry = entry_info; in PHP_METHOD()
4592 …phar_entry_object *entry_obj = (phar_entry_object*)((char*)Z_OBJ_P(zobj) - Z_OBJ_P(zobj)->handlers…
4593 if (!entry_obj->entry) { \
4605 …phar_entry_object *entry_obj = (phar_entry_object*)((char*)Z_OBJ_P(zobj) - Z_OBJ_P(zobj)->handlers… in PHP_METHOD() local
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 …emporary 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 … \"%s\" in phar \"%s\", write operations are prohibited", entry_obj->entry->filename, entry_obj->e… 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()
4749entry_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()
4852entry_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()
4905entry_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 …retrieve contents, \"%s\" in phar \"%s\" is a directory", entry_obj->entry->filename, entry_obj->e… in PHP_METHOD()
4950 link = phar_get_link_source(entry_obj->entry); in PHP_METHOD()
4953 link = entry_obj->entry; in PHP_METHOD()
4958 …or: Cannot retrieve contents, \"%s\" in phar \"%s\": %s", entry_obj->entry->filename, entry_obj->e… in PHP_METHOD()
4965 …rror: Cannot retrieve contents of \"%s\" in phar \"%s\"", entry_obj->entry->filename, entry_obj->e… 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()
5024entry_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 …"%s\" in phar \"%s\" in order to compress with gzip: %s", entry_obj->entry->filename, entry_obj->e… 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 …%s\" in phar \"%s\" in order to compress with bzip2: %s", entry_obj->entry->filename, entry_obj->e… 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()
5160entry_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 …phar error: Cannot open phar archive \"%s\" for reading", entry_obj->entry->filename, entry_obj->e… 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()