Lines Matching refs:entry

333 static inline php_stream *phar_get_entrypfp(phar_entry_info *entry)  in phar_get_entrypfp()  argument
335 if (!entry->is_persistent) { in phar_get_entrypfp()
336 return entry->phar->fp; in phar_get_entrypfp()
338 return PHAR_G(cached_fp)[entry->phar->phar_pos].fp; in phar_get_entrypfp()
341 static inline php_stream *phar_get_entrypufp(phar_entry_info *entry) in phar_get_entrypufp() argument
343 if (!entry->is_persistent) { in phar_get_entrypufp()
344 return entry->phar->ufp; in phar_get_entrypufp()
346 return PHAR_G(cached_fp)[entry->phar->phar_pos].ufp; in phar_get_entrypufp()
349 static inline void phar_set_entrypfp(phar_entry_info *entry, php_stream *fp) in phar_set_entrypfp() argument
351 if (!entry->phar->is_persistent) { in phar_set_entrypfp()
352 entry->phar->fp = fp; in phar_set_entrypfp()
356 PHAR_G(cached_fp)[entry->phar->phar_pos].fp = fp; in phar_set_entrypfp()
359 static inline void phar_set_entrypufp(phar_entry_info *entry, php_stream *fp) in phar_set_entrypufp() argument
361 if (!entry->phar->is_persistent) { in phar_set_entrypufp()
362 entry->phar->ufp = fp; in phar_set_entrypufp()
366 PHAR_G(cached_fp)[entry->phar->phar_pos].ufp = fp; in phar_set_entrypufp()
405 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
409 if (!entry->is_persistent) { in phar_set_fp_type()
410 entry->fp_type = type; in phar_set_fp_type()
411 entry->offset = offset; in phar_set_fp_type()
414 data = &(PHAR_G(cached_fp)[entry->phar->phar_pos].manifest[entry->manifest_pos]); in phar_set_fp_type()
419 static inline enum phar_fp_type phar_get_fp_type(phar_entry_info *entry) in phar_get_fp_type() argument
421 if (!entry->is_persistent) { in phar_get_fp_type()
422 return entry->fp_type; in phar_get_fp_type()
424 return PHAR_G(cached_fp)[entry->phar->phar_pos].manifest[entry->manifest_pos].fp_type; in phar_get_fp_type()
427 static inline zend_off_t phar_get_fp_offset(phar_entry_info *entry) in phar_get_fp_offset() argument
429 if (!entry->is_persistent) { in phar_get_fp_offset()
430 return entry->offset; in phar_get_fp_offset()
432 if (PHAR_G(cached_fp)[entry->phar->phar_pos].manifest[entry->manifest_pos].fp_type == PHAR_FP) { in phar_get_fp_offset()
433 if (!PHAR_G(cached_fp)[entry->phar->phar_pos].manifest[entry->manifest_pos].offset) { in phar_get_fp_offset()
434 PHAR_G(cached_fp)[entry->phar->phar_pos].manifest[entry->manifest_pos].offset = entry->offset; in phar_get_fp_offset()
437 return PHAR_G(cached_fp)[entry->phar->phar_pos].manifest[entry->manifest_pos].offset; in phar_get_fp_offset()
474 phar_entry_info *entry; member
508 static inline void phar_set_inode(phar_entry_info *entry) /* {{{ */ in phar_set_inode() argument
514 tmp_len = MIN(MAXPATHLEN, entry->filename_len + entry->phar->fname_len); in phar_set_inode()
516 len1 = MIN(entry->phar->fname_len, tmp_len); in phar_set_inode()
517 memcpy(tmp, entry->phar->fname, len1); in phar_set_inode()
519 len2 = MIN(tmp_len - len1, entry->filename_len); in phar_set_inode()
520 memcpy(tmp + len1, entry->filename, len2); in phar_set_inode()
522 entry->inode = (unsigned short) zend_hash_func(tmp, tmp_len); in phar_set_inode()
531 int phar_open_entry_file(phar_archive_data *phar, phar_entry_info *entry, char **error);
545 char *phar_decompress_filter(phar_entry_info * entry, int return_unknown);
546 char *phar_compress_filter(phar_entry_info * entry, int return_unknown);
553 phar_entry_info * phar_open_jit(phar_archive_data *phar, phar_entry_info *entry, char **error);
556 int phar_seek_efp(phar_entry_info *entry, zend_off_t offset, int whence, zend_off_t position, int f…
557 php_stream *phar_get_efp(phar_entry_info *entry, int follow_links);
559 int phar_open_entry_fp(phar_entry_info *entry, char **error, int follow_links);
560 phar_entry_info *phar_get_link_source(phar_entry_info *entry);
561 int phar_create_writeable_entry(phar_archive_data *phar, phar_entry_info *entry, char **error);
562 int phar_separate_entry_fp(phar_entry_info *entry, char **error);
594 …onst char *filename, int filename_len, char **arch, int *arch_len, char **entry, int *entry_len, i…