Lines Matching refs:entry_obj
4450 phar_entry_object *entry_obj; in PHP_METHOD() local
4459 entry_obj = (phar_entry_object*)((char*)Z_OBJ_P(zobj) - Z_OBJ_P(zobj)->handlers->offset); in PHP_METHOD()
4461 if (entry_obj->entry) { in PHP_METHOD()
4497 entry_obj->entry = entry_info; in PHP_METHOD()
4510 …phar_entry_object *entry_obj = (phar_entry_object*)((char*)Z_OBJ_P(zobj) - Z_OBJ_P(zobj)->handlers…
4511 if (!entry_obj->entry) { \
4521 …phar_entry_object *entry_obj = (phar_entry_object*)((char*)Z_OBJ_P(zobj) - Z_OBJ_P(zobj)->handlers… in PHP_METHOD() local
4527 if (entry_obj->entry && entry_obj->entry->is_temp_dir) { in PHP_METHOD()
4528 if (entry_obj->entry->filename) { in PHP_METHOD()
4529 efree(entry_obj->entry->filename); in PHP_METHOD()
4530 entry_obj->entry->filename = NULL; in PHP_METHOD()
4533 efree(entry_obj->entry); in PHP_METHOD()
4534 entry_obj->entry = NULL; in PHP_METHOD()
4548 RETURN_LONG(entry_obj->entry->compressed_filesize); in PHP_METHOD()
4565 RETURN_BOOL(entry_obj->entry->flags & PHAR_ENT_COMPRESSION_MASK); in PHP_METHOD()
4570 RETURN_BOOL(entry_obj->entry->flags & PHAR_ENT_COMPRESSION_MASK); in PHP_METHOD()
4572 RETURN_BOOL(entry_obj->entry->flags & PHAR_ENT_COMPRESSED_GZ); in PHP_METHOD()
4574 RETURN_BOOL(entry_obj->entry->flags & PHAR_ENT_COMPRESSED_BZ2); in PHP_METHOD()
4591 if (entry_obj->entry->is_dir) { in PHP_METHOD()
4597 if (entry_obj->entry->is_crc_checked) { in PHP_METHOD()
4598 RETURN_LONG(entry_obj->entry->crc32); in PHP_METHOD()
4615 RETURN_BOOL(entry_obj->entry->is_crc_checked); in PHP_METHOD()
4628 RETURN_LONG(entry_obj->entry->flags & ~(PHAR_ENT_PERM_MASK|PHAR_ENT_COMPRESSION_MASK)); in PHP_METHOD()
4644 if (entry_obj->entry->is_temp_dir) { in PHP_METHOD()
4646 …emporary directory (not an actual entry in the archive), cannot chmod", entry_obj->entry->filename… in PHP_METHOD()
4650 if (PHAR_G(readonly) && !entry_obj->entry->phar->is_data) { in PHP_METHOD()
4651 … \"%s\" in phar \"%s\", write operations are prohibited", entry_obj->entry->filename, entry_obj->e… in PHP_METHOD()
4655 if (entry_obj->entry->is_persistent) { in PHP_METHOD()
4656 phar_archive_data *phar = entry_obj->entry->phar; in PHP_METHOD()
4663 …entry_obj->entry = zend_hash_str_find_ptr(&phar->manifest, entry_obj->entry->filename, entry_obj->… in PHP_METHOD()
4666 entry_obj->entry->flags &= ~PHAR_ENT_PERM_MASK; in PHP_METHOD()
4668 entry_obj->entry->flags |= perms; in PHP_METHOD()
4669 entry_obj->entry->old_flags = entry_obj->entry->flags; in PHP_METHOD()
4670 entry_obj->entry->phar->is_modified = 1; in PHP_METHOD()
4671 entry_obj->entry->is_modified = 1; in PHP_METHOD()
4685 phar_flush(entry_obj->entry->phar, &error); in PHP_METHOD()
4703 …RETURN_BOOL(phar_metadata_tracker_has_data(&entry_obj->entry->metadata_tracker, entry_obj->entry->… in PHP_METHOD()
4720 tracker = &entry_obj->entry->metadata_tracker; in PHP_METHOD()
4721 if (phar_metadata_tracker_has_data(tracker, entry_obj->entry->is_persistent)) { in PHP_METHOD()
4722 …phar_metadata_tracker_unserialize_or_copy(tracker, return_value, entry_obj->entry->is_persistent, … in PHP_METHOD()
4739 if (PHAR_G(readonly) && !entry_obj->entry->phar->is_data) { in PHP_METHOD()
4744 if (entry_obj->entry->is_temp_dir) { in PHP_METHOD()
4750 if (entry_obj->entry->is_persistent) { in PHP_METHOD()
4751 phar_archive_data *phar = entry_obj->entry->phar; in PHP_METHOD()
4758 …entry_obj->entry = zend_hash_str_find_ptr(&phar->manifest, entry_obj->entry->filename, entry_obj->… in PHP_METHOD()
4759 ZEND_ASSERT(!entry_obj->entry->is_persistent); /* Should no longer be persistent */ in PHP_METHOD()
4762 …if (serialize_metadata_or_throw(&entry_obj->entry->metadata_tracker, entry_obj->entry->is_persiste… in PHP_METHOD()
4766 entry_obj->entry->is_modified = 1; in PHP_METHOD()
4767 entry_obj->entry->phar->is_modified = 1; in PHP_METHOD()
4768 phar_flush(entry_obj->entry->phar, &error); in PHP_METHOD()
4788 if (PHAR_G(readonly) && !entry_obj->entry->phar->is_data) { in PHP_METHOD()
4793 if (entry_obj->entry->is_temp_dir) { in PHP_METHOD()
4799 …if (phar_metadata_tracker_has_data(&entry_obj->entry->metadata_tracker, entry_obj->entry->is_persi… in PHP_METHOD()
4800 if (entry_obj->entry->is_persistent) { in PHP_METHOD()
4801 phar_archive_data *phar = entry_obj->entry->phar; in PHP_METHOD()
4808 …entry_obj->entry = zend_hash_str_find_ptr(&phar->manifest, entry_obj->entry->filename, entry_obj->… in PHP_METHOD()
4811 phar_metadata_tracker_free(&entry_obj->entry->metadata_tracker, entry_obj->entry->is_persistent); in PHP_METHOD()
4812 entry_obj->entry->is_modified = 1; in PHP_METHOD()
4813 entry_obj->entry->phar->is_modified = 1; in PHP_METHOD()
4815 phar_flush(entry_obj->entry->phar, &error); in PHP_METHOD()
4845 if (entry_obj->entry->is_dir) { in PHP_METHOD()
4847 …retrieve contents, \"%s\" in phar \"%s\" is a directory", entry_obj->entry->filename, entry_obj->e… in PHP_METHOD()
4851 link = phar_get_link_source(entry_obj->entry); in PHP_METHOD()
4854 link = entry_obj->entry; in PHP_METHOD()
4859 …or: Cannot retrieve contents, \"%s\" in phar \"%s\": %s", entry_obj->entry->filename, entry_obj->e… in PHP_METHOD()
4866 …rror: Cannot retrieve contents of \"%s\" in phar \"%s\"", entry_obj->entry->filename, entry_obj->e… in PHP_METHOD()
4892 if (entry_obj->entry->is_tar) { in PHP_METHOD()
4898 if (entry_obj->entry->is_dir) { in PHP_METHOD()
4904 if (PHAR_G(readonly) && !entry_obj->entry->phar->is_data) { in PHP_METHOD()
4910 if (entry_obj->entry->is_deleted) { in PHP_METHOD()
4916 if (entry_obj->entry->is_persistent) { in PHP_METHOD()
4917 phar_archive_data *phar = entry_obj->entry->phar; in PHP_METHOD()
4924 …entry_obj->entry = zend_hash_str_find_ptr(&phar->manifest, entry_obj->entry->filename, entry_obj->… in PHP_METHOD()
4928 if (entry_obj->entry->flags & PHAR_ENT_COMPRESSED_GZ) { in PHP_METHOD()
4932 if ((entry_obj->entry->flags & PHAR_ENT_COMPRESSED_BZ2) != 0) { in PHP_METHOD()
4940 if (SUCCESS != phar_open_entry_fp(entry_obj->entry, &error, 1)) { in PHP_METHOD()
4942 …"%s\" in phar \"%s\" in order to compress with gzip: %s", entry_obj->entry->filename, entry_obj->e… in PHP_METHOD()
4954 entry_obj->entry->old_flags = entry_obj->entry->flags; in PHP_METHOD()
4955 entry_obj->entry->flags &= ~PHAR_ENT_COMPRESSION_MASK; in PHP_METHOD()
4956 entry_obj->entry->flags |= PHAR_ENT_COMPRESSED_GZ; in PHP_METHOD()
4959 if (entry_obj->entry->flags & PHAR_ENT_COMPRESSED_BZ2) { in PHP_METHOD()
4963 if ((entry_obj->entry->flags & PHAR_ENT_COMPRESSED_GZ) != 0) { in PHP_METHOD()
4971 if (SUCCESS != phar_open_entry_fp(entry_obj->entry, &error, 1)) { in PHP_METHOD()
4973 …%s\" in phar \"%s\" in order to compress with bzip2: %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_BZ2; in PHP_METHOD()
4993 entry_obj->entry->phar->is_modified = 1; in PHP_METHOD()
4994 entry_obj->entry->is_modified = 1; in PHP_METHOD()
4995 phar_flush(entry_obj->entry->phar, &error); in PHP_METHOD()
5019 if (entry_obj->entry->is_dir) { in PHP_METHOD()
5025 if ((entry_obj->entry->flags & PHAR_ENT_COMPRESSION_MASK) == 0) { in PHP_METHOD()
5029 if (PHAR_G(readonly) && !entry_obj->entry->phar->is_data) { in PHP_METHOD()
5035 if (entry_obj->entry->is_deleted) { in PHP_METHOD()
5041 if ((entry_obj->entry->flags & PHAR_ENT_COMPRESSED_GZ) != 0 && !PHAR_G(has_zlib)) { in PHP_METHOD()
5047 if ((entry_obj->entry->flags & PHAR_ENT_COMPRESSED_BZ2) != 0 && !PHAR_G(has_bz2)) { in PHP_METHOD()
5053 if (entry_obj->entry->is_persistent) { in PHP_METHOD()
5054 phar_archive_data *phar = entry_obj->entry->phar; in PHP_METHOD()
5061 …entry_obj->entry = zend_hash_str_find_ptr(&phar->manifest, entry_obj->entry->filename, entry_obj->… in PHP_METHOD()
5063 switch (entry_obj->entry->flags & PHAR_ENT_COMPRESSION_MASK) { in PHP_METHOD()
5076 if (SUCCESS != phar_open_entry_fp(entry_obj->entry, &error, 1)) { in PHP_METHOD()
5078 …ressed file \"%s\" in phar \"%s\": %s", compression_type, entry_obj->entry->filename, entry_obj->e… in PHP_METHOD()
5083 entry_obj->entry->old_flags = entry_obj->entry->flags; in PHP_METHOD()
5084 entry_obj->entry->flags &= ~PHAR_ENT_COMPRESSION_MASK; in PHP_METHOD()
5085 entry_obj->entry->phar->is_modified = 1; in PHP_METHOD()
5086 entry_obj->entry->is_modified = 1; in PHP_METHOD()
5087 phar_flush(entry_obj->entry->phar, &error); in PHP_METHOD()