Lines Matching refs:entry
336 static inline php_stream *phar_get_entrypfp(phar_entry_info *entry) in phar_get_entrypfp() argument
338 if (!entry->is_persistent) { in phar_get_entrypfp()
339 return entry->phar->fp; in phar_get_entrypfp()
341 return PHAR_G(cached_fp)[entry->phar->phar_pos].fp; in phar_get_entrypfp()
344 static inline php_stream *phar_get_entrypufp(phar_entry_info *entry) in phar_get_entrypufp() argument
346 if (!entry->is_persistent) { in phar_get_entrypufp()
347 return entry->phar->ufp; in phar_get_entrypufp()
349 return PHAR_G(cached_fp)[entry->phar->phar_pos].ufp; in phar_get_entrypufp()
352 static inline void phar_set_entrypfp(phar_entry_info *entry, php_stream *fp) in phar_set_entrypfp() argument
354 if (!entry->phar->is_persistent) { in phar_set_entrypfp()
355 entry->phar->fp = fp; in phar_set_entrypfp()
359 PHAR_G(cached_fp)[entry->phar->phar_pos].fp = fp; in phar_set_entrypfp()
362 static inline void phar_set_entrypufp(phar_entry_info *entry, php_stream *fp) in phar_set_entrypufp() argument
364 if (!entry->phar->is_persistent) { in phar_set_entrypufp()
365 entry->phar->ufp = fp; in phar_set_entrypufp()
369 PHAR_G(cached_fp)[entry->phar->phar_pos].ufp = fp; in phar_set_entrypufp()
408 static inline void phar_set_fp_type(phar_entry_info *entry, enum phar_fp_type type, zend_off_t offs… in phar_set_fp_type() argument
412 if (!entry->is_persistent) { in phar_set_fp_type()
413 entry->fp_type = type; in phar_set_fp_type()
414 entry->offset = offset; in phar_set_fp_type()
417 data = &(PHAR_G(cached_fp)[entry->phar->phar_pos].manifest[entry->manifest_pos]); in phar_set_fp_type()
422 static inline enum phar_fp_type phar_get_fp_type(phar_entry_info *entry) in phar_get_fp_type() argument
424 if (!entry->is_persistent) { in phar_get_fp_type()
425 return entry->fp_type; in phar_get_fp_type()
427 return PHAR_G(cached_fp)[entry->phar->phar_pos].manifest[entry->manifest_pos].fp_type; in phar_get_fp_type()
430 static inline zend_off_t phar_get_fp_offset(phar_entry_info *entry) in phar_get_fp_offset() argument
432 if (!entry->is_persistent) { in phar_get_fp_offset()
433 return entry->offset; in phar_get_fp_offset()
435 if (PHAR_G(cached_fp)[entry->phar->phar_pos].manifest[entry->manifest_pos].fp_type == PHAR_FP) { in phar_get_fp_offset()
436 if (!PHAR_G(cached_fp)[entry->phar->phar_pos].manifest[entry->manifest_pos].offset) { in phar_get_fp_offset()
437 PHAR_G(cached_fp)[entry->phar->phar_pos].manifest[entry->manifest_pos].offset = entry->offset; in phar_get_fp_offset()
440 return PHAR_G(cached_fp)[entry->phar->phar_pos].manifest[entry->manifest_pos].offset; in phar_get_fp_offset()
477 phar_entry_info *entry; member
505 static inline void phar_set_inode(phar_entry_info *entry) /* {{{ */ in phar_set_inode() argument
511 tmp_len = MIN(MAXPATHLEN, entry->filename_len + entry->phar->fname_len); in phar_set_inode()
513 len1 = MIN(entry->phar->fname_len, tmp_len); in phar_set_inode()
514 if (entry->phar->fname) { in phar_set_inode()
515 memcpy(tmp, entry->phar->fname, len1); in phar_set_inode()
518 len2 = MIN(tmp_len - len1, entry->filename_len); in phar_set_inode()
519 memcpy(tmp + len1, entry->filename, len2); in phar_set_inode()
521 entry->inode = (unsigned short) zend_hash_func(tmp, tmp_len); in phar_set_inode()
530 int phar_open_entry_file(phar_archive_data *phar, phar_entry_info *entry, char **error);
544 char *phar_decompress_filter(phar_entry_info * entry, int return_unknown);
545 char *phar_compress_filter(phar_entry_info * entry, int return_unknown);
552 phar_entry_info * phar_open_jit(phar_archive_data *phar, phar_entry_info *entry, char **error);
561 void phar_release_entry_metadata(phar_entry_info *entry);
564 int phar_seek_efp(phar_entry_info *entry, zend_off_t offset, int whence, zend_off_t position, int f…
565 php_stream *phar_get_efp(phar_entry_info *entry, int follow_links);
567 int phar_open_entry_fp(phar_entry_info *entry, char **error, int follow_links);
568 phar_entry_info *phar_get_link_source(phar_entry_info *entry);
569 int phar_create_writeable_entry(phar_archive_data *phar, phar_entry_info *entry, char **error);
570 int phar_separate_entry_fp(phar_entry_info *entry, char **error);
602 …har *filename, size_t filename_len, char **arch, size_t *arch_len, char **entry, size_t *entry_len…