Lines Matching refs:entry

348 static inline php_stream *phar_get_entrypfp(phar_entry_info *entry TSRMLS_DC)  in phar_get_entrypfp()
350 if (!entry->is_persistent) { in phar_get_entrypfp()
351 return entry->phar->fp; in phar_get_entrypfp()
353 return PHAR_GLOBALS->cached_fp[entry->phar->phar_pos].fp; in phar_get_entrypfp()
356 static inline php_stream *phar_get_entrypufp(phar_entry_info *entry TSRMLS_DC) in phar_get_entrypufp()
358 if (!entry->is_persistent) { in phar_get_entrypufp()
359 return entry->phar->ufp; in phar_get_entrypufp()
361 return PHAR_GLOBALS->cached_fp[entry->phar->phar_pos].ufp; in phar_get_entrypufp()
364 static inline void phar_set_entrypfp(phar_entry_info *entry, php_stream *fp TSRMLS_DC) in phar_set_entrypfp() argument
366 if (!entry->phar->is_persistent) { in phar_set_entrypfp()
367 entry->phar->fp = fp; in phar_set_entrypfp()
371 PHAR_GLOBALS->cached_fp[entry->phar->phar_pos].fp = fp; in phar_set_entrypfp()
374 static inline void phar_set_entrypufp(phar_entry_info *entry, php_stream *fp TSRMLS_DC) in phar_set_entrypufp() argument
376 if (!entry->phar->is_persistent) { in phar_set_entrypufp()
377 entry->phar->ufp = fp; in phar_set_entrypufp()
381 PHAR_GLOBALS->cached_fp[entry->phar->phar_pos].ufp = fp; in phar_set_entrypufp()
420 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
424 if (!entry->is_persistent) { in phar_set_fp_type()
425 entry->fp_type = type; in phar_set_fp_type()
426 entry->offset = offset; in phar_set_fp_type()
429 data = &(PHAR_GLOBALS->cached_fp[entry->phar->phar_pos].manifest[entry->manifest_pos]); in phar_set_fp_type()
434 static inline enum phar_fp_type phar_get_fp_type(phar_entry_info *entry TSRMLS_DC) in phar_get_fp_type()
436 if (!entry->is_persistent) { in phar_get_fp_type()
437 return entry->fp_type; in phar_get_fp_type()
439 return PHAR_GLOBALS->cached_fp[entry->phar->phar_pos].manifest[entry->manifest_pos].fp_type; in phar_get_fp_type()
442 static inline off_t phar_get_fp_offset(phar_entry_info *entry TSRMLS_DC) in phar_get_fp_offset()
444 if (!entry->is_persistent) { in phar_get_fp_offset()
445 return entry->offset; in phar_get_fp_offset()
447 …if (PHAR_GLOBALS->cached_fp[entry->phar->phar_pos].manifest[entry->manifest_pos].fp_type == PHAR_F… in phar_get_fp_offset()
448 if (!PHAR_GLOBALS->cached_fp[entry->phar->phar_pos].manifest[entry->manifest_pos].offset) { in phar_get_fp_offset()
449 …PHAR_GLOBALS->cached_fp[entry->phar->phar_pos].manifest[entry->manifest_pos].offset = entry->offse… in phar_get_fp_offset()
452 return PHAR_GLOBALS->cached_fp[entry->phar->phar_pos].manifest[entry->manifest_pos].offset; in phar_get_fp_offset()
499 phar_entry_info *entry; member
535 static inline void phar_set_inode(phar_entry_info *entry TSRMLS_DC) /* {{{ */ in phar_set_inode()
541 tmp_len = MIN(MAXPATHLEN, entry->filename_len + entry->phar->fname_len); in phar_set_inode()
543 len1 = MIN(entry->phar->fname_len, tmp_len); in phar_set_inode()
544 memcpy(tmp, entry->phar->fname, len1); in phar_set_inode()
546 len2 = MIN(tmp_len - len1, entry->filename_len); in phar_set_inode()
547 memcpy(tmp + len1, entry->filename, len2); in phar_set_inode()
549 entry->inode = (unsigned short)zend_get_hash_value(tmp, tmp_len); in phar_set_inode()
558 int phar_open_entry_file(phar_archive_data *phar, phar_entry_info *entry, char **error TSRMLS_DC);
572 char *phar_decompress_filter(phar_entry_info * entry, int return_unknown);
573 char *phar_compress_filter(phar_entry_info * entry, int return_unknown);
580 phar_entry_info * phar_open_jit(phar_archive_data *phar, phar_entry_info *entry, char **error TSRML…
583 int phar_seek_efp(phar_entry_info *entry, off_t offset, int whence, off_t position, int follow_link…
584 php_stream *phar_get_efp(phar_entry_info *entry, int follow_links TSRMLS_DC);
586 int phar_open_entry_fp(phar_entry_info *entry, char **error, int follow_links TSRMLS_DC);
587 phar_entry_info *phar_get_link_source(phar_entry_info *entry TSRMLS_DC);
588 int phar_create_writeable_entry(phar_archive_data *phar, phar_entry_info *entry, char **error TSRML…
589 int phar_separate_entry_fp(phar_entry_info *entry, char **error TSRMLS_DC);
621 …onst char *filename, int filename_len, char **arch, int *arch_len, char **entry, int *entry_len, i…