Lines Matching refs:entry
63 char *arch = NULL, *entry = NULL, *error; in phar_parse_url() local
75 …if (phar_split_fname(filename, strlen(filename), &arch, &arch_len, &entry, &entry_len, 2, (mode[0]… in phar_parse_url()
77 if (arch && !entry) { in phar_parse_url()
90 resource->path = zend_string_init(entry, entry_len, 0); in phar_parse_url()
91 efree(entry); in phar_parse_url()
260 phar_entry_info *entry; in phar_wrapper_open_url() local
262 entry = (phar_entry_info *) ecalloc(1, sizeof(phar_entry_info)); in phar_wrapper_open_url()
263 entry->is_temp_dir = 1; in phar_wrapper_open_url()
264 entry->filename = estrndup("", 0); in phar_wrapper_open_url()
265 entry->filename_len = 0; in phar_wrapper_open_url()
266 entry->phar = phar; in phar_wrapper_open_url()
267 entry->offset = entry->offset_abs = 0; in phar_wrapper_open_url()
268 entry->compressed_filesize = entry->uncompressed_filesize = phar->halt_offset; in phar_wrapper_open_url()
269 entry->is_crc_checked = 1; in phar_wrapper_open_url()
274 idata->internal_file = entry; in phar_wrapper_open_url()
276 ++(entry->phar->refcount); in phar_wrapper_open_url()
278 ++(entry->fp_refcount); in phar_wrapper_open_url()
322 char *entry = idata->internal_file->filename, *cwd; in phar_wrapper_open_url() local
328 } else if ((cwd = strrchr(entry, '/'))) { in phar_wrapper_open_url()
329 PHAR_G(cwd_len) = cwd - entry; in phar_wrapper_open_url()
330 PHAR_G(cwd) = estrndup(entry, PHAR_G(cwd_len)); in phar_wrapper_open_url()
368 phar_entry_info *entry; in phar_stream_read() local
371 entry = phar_get_link_source(data->internal_file); in phar_stream_read()
373 entry = data->internal_file; in phar_stream_read()
376 if (entry->is_deleted) { in phar_stream_read()
384 …got = php_stream_read(data->fp, buf, MIN(count, (size_t)(entry->uncompressed_filesize - data->posi… in phar_stream_read()
386 stream->eof = (data->position == (zend_off_t) entry->uncompressed_filesize); in phar_stream_read()
398 phar_entry_info *entry; in phar_stream_seek() local
403 entry = phar_get_link_source(data->internal_file); in phar_stream_seek()
405 entry = data->internal_file; in phar_stream_seek()
410 temp = data->zero + entry->uncompressed_filesize + offset; in phar_stream_seek()
421 if (temp > data->zero + (zend_off_t) entry->uncompressed_filesize) { in phar_stream_seek()
559 phar_entry_info *entry; in phar_wrapper_stat() local
605 if (NULL != (entry = zend_hash_str_find_ptr(&phar->manifest, internal_file, internal_file_len))) { in phar_wrapper_stat()
606 phar_dostat(phar, entry, ssb, 0); in phar_wrapper_stat()
627 if (NULL == (entry = zend_hash_find_ptr(&phar->manifest, str_key))) { in phar_wrapper_stat()
630 if (!entry->tmp || !entry->is_mounted) { in phar_wrapper_stat()
633 test_len = spprintf(&test, MAXPATHLEN, "%s%s", entry->tmp, internal_file + ZSTR_LEN(str_key)); in phar_wrapper_stat()
644 … if (NULL == (entry = zend_hash_str_find_ptr(&phar->manifest, internal_file, internal_file_len))) { in phar_wrapper_stat()
647 phar_dostat(phar, entry, ssb, 0); in phar_wrapper_stat()
741 phar_entry_info *entry; in phar_wrapper_rename() local
834 …if (NULL != (entry = zend_hash_str_find_ptr(&(phar->manifest), ZSTR_VAL(resource_from->path)+1, ZS… in phar_wrapper_rename()
838 if (entry->is_deleted) { in phar_wrapper_rename()
845 memcpy((void *) &new, (void *) entry, sizeof(phar_entry_info)); in phar_wrapper_rename()
847 entry->is_deleted = 1; in phar_wrapper_rename()
848 entry->fp = NULL; in phar_wrapper_rename()
849 ZVAL_UNDEF(&entry->metadata); in phar_wrapper_rename()
850 entry->link = entry->tmp = NULL; in phar_wrapper_rename()
851 source = entry; in phar_wrapper_rename()
854 …entry = zend_hash_str_add_mem(&(phar->manifest), ZSTR_VAL(resource_to->path)+1, ZSTR_LEN(resource_… in phar_wrapper_rename()
856 entry->filename = estrndup(ZSTR_VAL(resource_to->path)+1, ZSTR_LEN(resource_to->path)-1); in phar_wrapper_rename()
857 if (FAILURE == phar_copy_entry_fp(source, entry, &error)) { in phar_wrapper_rename()
862 zend_hash_str_del(&(phar->manifest), entry->filename, strlen(entry->filename)); in phar_wrapper_rename()
866 entry->is_modified = 1; in phar_wrapper_rename()
867 entry->filename_len = strlen(entry->filename); in phar_wrapper_rename()
868 is_dir = entry->is_dir; in phar_wrapper_rename()
891 entry = Z_PTR(b->val); in phar_wrapper_rename()
892 if (!entry->is_deleted && in phar_wrapper_rename()
903 entry->is_modified = 1; in phar_wrapper_rename()
904 efree(entry->filename); in phar_wrapper_rename()
906 entry->filename = estrndup(ZSTR_VAL(new_str_key), ZSTR_LEN(new_str_key)); in phar_wrapper_rename()
907 entry->filename_len = ZSTR_LEN(new_str_key); in phar_wrapper_rename()