Lines Matching refs:entry
334 static inline php_stream *phar_get_entrypfp(phar_entry_info *entry) in phar_get_entrypfp() argument
336 if (!entry->is_persistent) { in phar_get_entrypfp()
337 return entry->phar->fp; in phar_get_entrypfp()
339 return PHAR_G(cached_fp)[entry->phar->phar_pos].fp; in phar_get_entrypfp()
342 static inline php_stream *phar_get_entrypufp(phar_entry_info *entry) in phar_get_entrypufp() argument
344 if (!entry->is_persistent) { in phar_get_entrypufp()
345 return entry->phar->ufp; in phar_get_entrypufp()
347 return PHAR_G(cached_fp)[entry->phar->phar_pos].ufp; in phar_get_entrypufp()
350 static inline void phar_set_entrypfp(phar_entry_info *entry, php_stream *fp) in phar_set_entrypfp() argument
352 if (!entry->phar->is_persistent) { in phar_set_entrypfp()
353 entry->phar->fp = fp; in phar_set_entrypfp()
357 PHAR_G(cached_fp)[entry->phar->phar_pos].fp = fp; in phar_set_entrypfp()
360 static inline void phar_set_entrypufp(phar_entry_info *entry, php_stream *fp) in phar_set_entrypufp() argument
362 if (!entry->phar->is_persistent) { in phar_set_entrypufp()
363 entry->phar->ufp = fp; in phar_set_entrypufp()
367 PHAR_G(cached_fp)[entry->phar->phar_pos].ufp = fp; in phar_set_entrypufp()
406 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
410 if (!entry->is_persistent) { in phar_set_fp_type()
411 entry->fp_type = type; in phar_set_fp_type()
412 entry->offset = offset; in phar_set_fp_type()
415 data = &(PHAR_G(cached_fp)[entry->phar->phar_pos].manifest[entry->manifest_pos]); in phar_set_fp_type()
420 static inline enum phar_fp_type phar_get_fp_type(phar_entry_info *entry) in phar_get_fp_type() argument
422 if (!entry->is_persistent) { in phar_get_fp_type()
423 return entry->fp_type; in phar_get_fp_type()
425 return PHAR_G(cached_fp)[entry->phar->phar_pos].manifest[entry->manifest_pos].fp_type; in phar_get_fp_type()
428 static inline zend_off_t phar_get_fp_offset(phar_entry_info *entry) in phar_get_fp_offset() argument
430 if (!entry->is_persistent) { in phar_get_fp_offset()
431 return entry->offset; in phar_get_fp_offset()
433 if (PHAR_G(cached_fp)[entry->phar->phar_pos].manifest[entry->manifest_pos].fp_type == PHAR_FP) { in phar_get_fp_offset()
434 if (!PHAR_G(cached_fp)[entry->phar->phar_pos].manifest[entry->manifest_pos].offset) { in phar_get_fp_offset()
435 PHAR_G(cached_fp)[entry->phar->phar_pos].manifest[entry->manifest_pos].offset = entry->offset; in phar_get_fp_offset()
438 return PHAR_G(cached_fp)[entry->phar->phar_pos].manifest[entry->manifest_pos].offset; in phar_get_fp_offset()
475 phar_entry_info *entry; member
507 static inline void phar_set_inode(phar_entry_info *entry) /* {{{ */ in phar_set_inode() argument
513 tmp_len = MIN(MAXPATHLEN, entry->filename_len + entry->phar->fname_len); in phar_set_inode()
515 len1 = MIN(entry->phar->fname_len, tmp_len); in phar_set_inode()
516 if (entry->phar->fname) { in phar_set_inode()
517 memcpy(tmp, entry->phar->fname, len1); in phar_set_inode()
520 len2 = MIN(tmp_len - len1, entry->filename_len); in phar_set_inode()
521 memcpy(tmp + len1, entry->filename, len2); in phar_set_inode()
523 entry->inode = (unsigned short) zend_hash_func(tmp, tmp_len); in phar_set_inode()
532 int phar_open_entry_file(phar_archive_data *phar, phar_entry_info *entry, char **error);
546 char *phar_decompress_filter(phar_entry_info * entry, int return_unknown);
547 char *phar_compress_filter(phar_entry_info * entry, int return_unknown);
554 phar_entry_info * phar_open_jit(phar_archive_data *phar, phar_entry_info *entry, char **error);
563 void phar_release_entry_metadata(phar_entry_info *entry);
566 int phar_seek_efp(phar_entry_info *entry, zend_off_t offset, int whence, zend_off_t position, int f…
567 php_stream *phar_get_efp(phar_entry_info *entry, int follow_links);
569 int phar_open_entry_fp(phar_entry_info *entry, char **error, int follow_links);
570 phar_entry_info *phar_get_link_source(phar_entry_info *entry);
571 int phar_create_writeable_entry(phar_archive_data *phar, phar_entry_info *entry, char **error);
572 int phar_separate_entry_fp(phar_entry_info *entry, char **error);
604 …har *filename, size_t filename_len, char **arch, size_t *arch_len, char **entry, size_t *entry_len…