Lines Matching refs:entry
362 static inline php_stream *phar_get_entrypfp(phar_entry_info *entry TSRMLS_DC) in phar_get_entrypfp()
364 if (!entry->is_persistent) { in phar_get_entrypfp()
365 return entry->phar->fp; in phar_get_entrypfp()
367 return PHAR_GLOBALS->cached_fp[entry->phar->phar_pos].fp; in phar_get_entrypfp()
370 static inline php_stream *phar_get_entrypufp(phar_entry_info *entry TSRMLS_DC) in phar_get_entrypufp()
372 if (!entry->is_persistent) { in phar_get_entrypufp()
373 return entry->phar->ufp; in phar_get_entrypufp()
375 return PHAR_GLOBALS->cached_fp[entry->phar->phar_pos].ufp; in phar_get_entrypufp()
378 static inline void phar_set_entrypfp(phar_entry_info *entry, php_stream *fp TSRMLS_DC) in phar_set_entrypfp() argument
380 if (!entry->phar->is_persistent) { in phar_set_entrypfp()
381 entry->phar->fp = fp; in phar_set_entrypfp()
385 PHAR_GLOBALS->cached_fp[entry->phar->phar_pos].fp = fp; in phar_set_entrypfp()
388 static inline void phar_set_entrypufp(phar_entry_info *entry, php_stream *fp TSRMLS_DC) in phar_set_entrypufp() argument
390 if (!entry->phar->is_persistent) { in phar_set_entrypufp()
391 entry->phar->ufp = fp; in phar_set_entrypufp()
395 PHAR_GLOBALS->cached_fp[entry->phar->phar_pos].ufp = fp; in phar_set_entrypufp()
434 static inline void phar_set_fp_type(phar_entry_info *entry, enum phar_fp_type type, off_t offset TS… in phar_set_fp_type() argument
438 if (!entry->is_persistent) { in phar_set_fp_type()
439 entry->fp_type = type; in phar_set_fp_type()
440 entry->offset = offset; in phar_set_fp_type()
443 data = &(PHAR_GLOBALS->cached_fp[entry->phar->phar_pos].manifest[entry->manifest_pos]); in phar_set_fp_type()
448 static inline enum phar_fp_type phar_get_fp_type(phar_entry_info *entry TSRMLS_DC) in phar_get_fp_type()
450 if (!entry->is_persistent) { in phar_get_fp_type()
451 return entry->fp_type; in phar_get_fp_type()
453 return PHAR_GLOBALS->cached_fp[entry->phar->phar_pos].manifest[entry->manifest_pos].fp_type; in phar_get_fp_type()
456 static inline off_t phar_get_fp_offset(phar_entry_info *entry TSRMLS_DC) in phar_get_fp_offset()
458 if (!entry->is_persistent) { in phar_get_fp_offset()
459 return entry->offset; in phar_get_fp_offset()
461 …if (PHAR_GLOBALS->cached_fp[entry->phar->phar_pos].manifest[entry->manifest_pos].fp_type == PHAR_F… in phar_get_fp_offset()
462 if (!PHAR_GLOBALS->cached_fp[entry->phar->phar_pos].manifest[entry->manifest_pos].offset) { in phar_get_fp_offset()
463 …PHAR_GLOBALS->cached_fp[entry->phar->phar_pos].manifest[entry->manifest_pos].offset = entry->offse… in phar_get_fp_offset()
466 return PHAR_GLOBALS->cached_fp[entry->phar->phar_pos].manifest[entry->manifest_pos].offset; in phar_get_fp_offset()
513 phar_entry_info *entry; member
617 static inline void phar_set_inode(phar_entry_info *entry TSRMLS_DC) /* {{{ */ in phar_set_inode()
623 tmp_len = MIN(MAXPATHLEN, entry->filename_len + entry->phar->fname_len); in phar_set_inode()
625 len1 = MIN(entry->phar->fname_len, tmp_len); in phar_set_inode()
626 memcpy(tmp, entry->phar->fname, len1); in phar_set_inode()
628 len2 = MIN(tmp_len - len1, entry->filename_len); in phar_set_inode()
629 memcpy(tmp + len1, entry->filename, len2); in phar_set_inode()
631 entry->inode = (unsigned short)zend_get_hash_value(tmp, tmp_len); in phar_set_inode()
640 int phar_open_entry_file(phar_archive_data *phar, phar_entry_info *entry, char **error TSRMLS_DC);
654 char *phar_decompress_filter(phar_entry_info * entry, int return_unknown);
655 char *phar_compress_filter(phar_entry_info * entry, int return_unknown);
662 phar_entry_info * phar_open_jit(phar_archive_data *phar, phar_entry_info *entry, char **error TSRML…
665 int phar_seek_efp(phar_entry_info *entry, off_t offset, int whence, off_t position, int follow_link…
666 php_stream *phar_get_efp(phar_entry_info *entry, int follow_links TSRMLS_DC);
668 int phar_open_entry_fp(phar_entry_info *entry, char **error, int follow_links TSRMLS_DC);
669 phar_entry_info *phar_get_link_source(phar_entry_info *entry TSRMLS_DC);
670 int phar_create_writeable_entry(phar_archive_data *phar, phar_entry_info *entry, char **error TSRML…
671 int phar_separate_entry_fp(phar_entry_info *entry, char **error TSRMLS_DC);
703 int phar_split_fname(char *filename, int filename_len, char **arch, int *arch_len, char **entry, in…