Lines Matching refs:entry

364 static inline php_stream *phar_get_entrypfp(phar_entry_info *entry TSRMLS_DC)  in phar_get_entrypfp()
366 if (!entry->is_persistent) { in phar_get_entrypfp()
367 return entry->phar->fp; in phar_get_entrypfp()
369 return PHAR_GLOBALS->cached_fp[entry->phar->phar_pos].fp; in phar_get_entrypfp()
372 static inline php_stream *phar_get_entrypufp(phar_entry_info *entry TSRMLS_DC) in phar_get_entrypufp()
374 if (!entry->is_persistent) { in phar_get_entrypufp()
375 return entry->phar->ufp; in phar_get_entrypufp()
377 return PHAR_GLOBALS->cached_fp[entry->phar->phar_pos].ufp; in phar_get_entrypufp()
380 static inline void phar_set_entrypfp(phar_entry_info *entry, php_stream *fp TSRMLS_DC) in phar_set_entrypfp() argument
382 if (!entry->phar->is_persistent) { in phar_set_entrypfp()
383 entry->phar->fp = fp; in phar_set_entrypfp()
387 PHAR_GLOBALS->cached_fp[entry->phar->phar_pos].fp = fp; in phar_set_entrypfp()
390 static inline void phar_set_entrypufp(phar_entry_info *entry, php_stream *fp TSRMLS_DC) in phar_set_entrypufp() argument
392 if (!entry->phar->is_persistent) { in phar_set_entrypufp()
393 entry->phar->ufp = fp; in phar_set_entrypufp()
397 PHAR_GLOBALS->cached_fp[entry->phar->phar_pos].ufp = fp; in phar_set_entrypufp()
436 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
440 if (!entry->is_persistent) { in phar_set_fp_type()
441 entry->fp_type = type; in phar_set_fp_type()
442 entry->offset = offset; in phar_set_fp_type()
445 data = &(PHAR_GLOBALS->cached_fp[entry->phar->phar_pos].manifest[entry->manifest_pos]); in phar_set_fp_type()
450 static inline enum phar_fp_type phar_get_fp_type(phar_entry_info *entry TSRMLS_DC) in phar_get_fp_type()
452 if (!entry->is_persistent) { in phar_get_fp_type()
453 return entry->fp_type; in phar_get_fp_type()
455 return PHAR_GLOBALS->cached_fp[entry->phar->phar_pos].manifest[entry->manifest_pos].fp_type; in phar_get_fp_type()
458 static inline off_t phar_get_fp_offset(phar_entry_info *entry TSRMLS_DC) in phar_get_fp_offset()
460 if (!entry->is_persistent) { in phar_get_fp_offset()
461 return entry->offset; in phar_get_fp_offset()
463 …if (PHAR_GLOBALS->cached_fp[entry->phar->phar_pos].manifest[entry->manifest_pos].fp_type == PHAR_F… in phar_get_fp_offset()
464 if (!PHAR_GLOBALS->cached_fp[entry->phar->phar_pos].manifest[entry->manifest_pos].offset) { in phar_get_fp_offset()
465 …PHAR_GLOBALS->cached_fp[entry->phar->phar_pos].manifest[entry->manifest_pos].offset = entry->offse… in phar_get_fp_offset()
468 return PHAR_GLOBALS->cached_fp[entry->phar->phar_pos].manifest[entry->manifest_pos].offset; in phar_get_fp_offset()
515 phar_entry_info *entry; member
560 static inline void phar_set_inode(phar_entry_info *entry TSRMLS_DC) /* {{{ */ in phar_set_inode()
566 tmp_len = MIN(MAXPATHLEN, entry->filename_len + entry->phar->fname_len); in phar_set_inode()
568 len1 = MIN(entry->phar->fname_len, tmp_len); in phar_set_inode()
569 memcpy(tmp, entry->phar->fname, len1); in phar_set_inode()
571 len2 = MIN(tmp_len - len1, entry->filename_len); in phar_set_inode()
572 memcpy(tmp + len1, entry->filename, len2); in phar_set_inode()
574 entry->inode = (unsigned short)zend_get_hash_value(tmp, tmp_len); in phar_set_inode()
583 int phar_open_entry_file(phar_archive_data *phar, phar_entry_info *entry, char **error TSRMLS_DC);
597 char *phar_decompress_filter(phar_entry_info * entry, int return_unknown);
598 char *phar_compress_filter(phar_entry_info * entry, int return_unknown);
605 phar_entry_info * phar_open_jit(phar_archive_data *phar, phar_entry_info *entry, char **error TSRML…
608 int phar_seek_efp(phar_entry_info *entry, off_t offset, int whence, off_t position, int follow_link…
609 php_stream *phar_get_efp(phar_entry_info *entry, int follow_links TSRMLS_DC);
611 int phar_open_entry_fp(phar_entry_info *entry, char **error, int follow_links TSRMLS_DC);
612 phar_entry_info *phar_get_link_source(phar_entry_info *entry TSRMLS_DC);
613 int phar_create_writeable_entry(phar_archive_data *phar, phar_entry_info *entry, char **error TSRML…
614 int phar_separate_entry_fp(phar_entry_info *entry, char **error TSRMLS_DC);
646 int phar_split_fname(char *filename, int filename_len, char **arch, int *arch_len, char **entry, in…