Lines Matching refs:entry_obj

4465 	phar_entry_object *entry_obj;  in PHP_METHOD()  local
4474 entry_obj = (phar_entry_object*)((char*)Z_OBJ_P(zobj) - Z_OBJ_P(zobj)->handlers->offset); in PHP_METHOD()
4476 if (entry_obj->entry) { in PHP_METHOD()
4512 entry_obj->entry = entry_info; in PHP_METHOD()
4525 …phar_entry_object *entry_obj = (phar_entry_object*)((char*)Z_OBJ_P(zobj) - Z_OBJ_P(zobj)->handlers…
4526 if (!entry_obj->entry) { \
4536 …phar_entry_object *entry_obj = (phar_entry_object*)((char*)Z_OBJ_P(zobj) - Z_OBJ_P(zobj)->handlers… in PHP_METHOD() local
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 …emporary 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 … \"%s\" in phar \"%s\", write operations are prohibited", entry_obj->entry->filename, entry_obj->e… 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()
4678entry_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()
4773entry_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()
4823entry_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 …retrieve contents, \"%s\" in phar \"%s\" is a directory", entry_obj->entry->filename, entry_obj->e… in PHP_METHOD()
4866 link = phar_get_link_source(entry_obj->entry); in PHP_METHOD()
4869 link = entry_obj->entry; in PHP_METHOD()
4874 …or: Cannot retrieve contents, \"%s\" in phar \"%s\": %s", entry_obj->entry->filename, entry_obj->e… in PHP_METHOD()
4881 …rror: Cannot retrieve contents of \"%s\" in phar \"%s\"", entry_obj->entry->filename, entry_obj->e… 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()
4939entry_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 …"%s\" in phar \"%s\" in order to compress with gzip: %s", entry_obj->entry->filename, entry_obj->e… 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 …%s\" in phar \"%s\" in order to compress with bzip2: %s", entry_obj->entry->filename, entry_obj->e… 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()
5076entry_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 …ressed file \"%s\" in phar \"%s\": %s", compression_type, entry_obj->entry->filename, entry_obj->e… 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()