Lines Matching refs:entry
331 static inline php_stream *phar_get_entrypfp(phar_entry_info *entry) in phar_get_entrypfp() argument
333 if (!entry->is_persistent) { in phar_get_entrypfp()
334 return entry->phar->fp; in phar_get_entrypfp()
336 return PHAR_G(cached_fp)[entry->phar->phar_pos].fp; in phar_get_entrypfp()
339 static inline php_stream *phar_get_entrypufp(phar_entry_info *entry) in phar_get_entrypufp() argument
341 if (!entry->is_persistent) { in phar_get_entrypufp()
342 return entry->phar->ufp; in phar_get_entrypufp()
344 return PHAR_G(cached_fp)[entry->phar->phar_pos].ufp; in phar_get_entrypufp()
347 static inline void phar_set_entrypfp(phar_entry_info *entry, php_stream *fp) in phar_set_entrypfp() argument
349 if (!entry->phar->is_persistent) { in phar_set_entrypfp()
350 entry->phar->fp = fp; in phar_set_entrypfp()
354 PHAR_G(cached_fp)[entry->phar->phar_pos].fp = fp; in phar_set_entrypfp()
357 static inline void phar_set_entrypufp(phar_entry_info *entry, php_stream *fp) in phar_set_entrypufp() argument
359 if (!entry->phar->is_persistent) { in phar_set_entrypufp()
360 entry->phar->ufp = fp; in phar_set_entrypufp()
364 PHAR_G(cached_fp)[entry->phar->phar_pos].ufp = fp; in phar_set_entrypufp()
403 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
407 if (!entry->is_persistent) { in phar_set_fp_type()
408 entry->fp_type = type; in phar_set_fp_type()
409 entry->offset = offset; in phar_set_fp_type()
412 data = &(PHAR_G(cached_fp)[entry->phar->phar_pos].manifest[entry->manifest_pos]); in phar_set_fp_type()
417 static inline enum phar_fp_type phar_get_fp_type(phar_entry_info *entry) in phar_get_fp_type() argument
419 if (!entry->is_persistent) { in phar_get_fp_type()
420 return entry->fp_type; in phar_get_fp_type()
422 return PHAR_G(cached_fp)[entry->phar->phar_pos].manifest[entry->manifest_pos].fp_type; in phar_get_fp_type()
425 static inline zend_off_t phar_get_fp_offset(phar_entry_info *entry) in phar_get_fp_offset() argument
427 if (!entry->is_persistent) { in phar_get_fp_offset()
428 return entry->offset; in phar_get_fp_offset()
430 if (PHAR_G(cached_fp)[entry->phar->phar_pos].manifest[entry->manifest_pos].fp_type == PHAR_FP) { in phar_get_fp_offset()
431 if (!PHAR_G(cached_fp)[entry->phar->phar_pos].manifest[entry->manifest_pos].offset) { in phar_get_fp_offset()
432 PHAR_G(cached_fp)[entry->phar->phar_pos].manifest[entry->manifest_pos].offset = entry->offset; in phar_get_fp_offset()
435 return PHAR_G(cached_fp)[entry->phar->phar_pos].manifest[entry->manifest_pos].offset; in phar_get_fp_offset()
472 phar_entry_info *entry; member
506 static inline void phar_set_inode(phar_entry_info *entry) /* {{{ */ in phar_set_inode() argument
512 tmp_len = MIN(MAXPATHLEN, entry->filename_len + entry->phar->fname_len); in phar_set_inode()
514 len1 = MIN(entry->phar->fname_len, tmp_len); in phar_set_inode()
515 memcpy(tmp, entry->phar->fname, len1); in phar_set_inode()
517 len2 = MIN(tmp_len - len1, entry->filename_len); in phar_set_inode()
518 memcpy(tmp + len1, entry->filename, len2); in phar_set_inode()
520 entry->inode = (unsigned short) zend_hash_func(tmp, tmp_len); in phar_set_inode()
529 int phar_open_entry_file(phar_archive_data *phar, phar_entry_info *entry, char **error);
543 char *phar_decompress_filter(phar_entry_info * entry, int return_unknown);
544 char *phar_compress_filter(phar_entry_info * entry, int return_unknown);
551 phar_entry_info * phar_open_jit(phar_archive_data *phar, phar_entry_info *entry, char **error);
554 int phar_seek_efp(phar_entry_info *entry, zend_off_t offset, int whence, zend_off_t position, int f…
555 php_stream *phar_get_efp(phar_entry_info *entry, int follow_links);
557 int phar_open_entry_fp(phar_entry_info *entry, char **error, int follow_links);
558 phar_entry_info *phar_get_link_source(phar_entry_info *entry);
559 int phar_create_writeable_entry(phar_archive_data *phar, phar_entry_info *entry, char **error);
560 int phar_separate_entry_fp(phar_entry_info *entry, char **error);
592 …har *filename, size_t filename_len, char **arch, size_t *arch_len, char **entry, size_t *entry_len…