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()
268 phar_entry_info *entry; in phar_wrapper_open_url() local
270 entry = (phar_entry_info *) ecalloc(1, sizeof(phar_entry_info)); in phar_wrapper_open_url()
271 entry->is_temp_dir = 1; in phar_wrapper_open_url()
272 entry->filename = estrndup("", 0); in phar_wrapper_open_url()
273 entry->filename_len = 0; in phar_wrapper_open_url()
274 entry->phar = phar; in phar_wrapper_open_url()
275 entry->offset = entry->offset_abs = 0; in phar_wrapper_open_url()
276 entry->compressed_filesize = entry->uncompressed_filesize = phar->halt_offset; in phar_wrapper_open_url()
277 entry->is_crc_checked = 1; in phar_wrapper_open_url()
282 idata->internal_file = entry; in phar_wrapper_open_url()
284 ++(entry->phar->refcount); in phar_wrapper_open_url()
286 ++(entry->fp_refcount); in phar_wrapper_open_url()
330 char *entry = idata->internal_file->filename, *cwd; in phar_wrapper_open_url() local
336 } else if ((cwd = strrchr(entry, '/'))) { in phar_wrapper_open_url()
337 PHAR_G(cwd_len) = cwd - entry; in phar_wrapper_open_url()
338 PHAR_G(cwd) = estrndup(entry, PHAR_G(cwd_len)); in phar_wrapper_open_url()
376 phar_entry_info *entry; in phar_stream_read() local
379 entry = phar_get_link_source(data->internal_file); in phar_stream_read()
381 entry = data->internal_file; in phar_stream_read()
384 if (entry->is_deleted) { in phar_stream_read()
392 …got = php_stream_read(data->fp, buf, MIN(count, (size_t)(entry->uncompressed_filesize - data->posi… in phar_stream_read()
394 stream->eof = (data->position == (zend_off_t) entry->uncompressed_filesize); in phar_stream_read()
406 phar_entry_info *entry; in phar_stream_seek() local
411 entry = phar_get_link_source(data->internal_file); in phar_stream_seek()
413 entry = data->internal_file; in phar_stream_seek()
418 temp = data->zero + entry->uncompressed_filesize + offset; in phar_stream_seek()
429 if (temp > data->zero + (zend_off_t) entry->uncompressed_filesize) { in phar_stream_seek()
567 phar_entry_info *entry; in phar_wrapper_stat() local
613 if (NULL != (entry = zend_hash_str_find_ptr(&phar->manifest, internal_file, internal_file_len))) { in phar_wrapper_stat()
614 phar_dostat(phar, entry, ssb, 0); in phar_wrapper_stat()
635 if (NULL == (entry = zend_hash_find_ptr(&phar->manifest, str_key))) { in phar_wrapper_stat()
638 if (!entry->tmp || !entry->is_mounted) { in phar_wrapper_stat()
641 test_len = spprintf(&test, MAXPATHLEN, "%s%s", entry->tmp, internal_file + ZSTR_LEN(str_key)); in phar_wrapper_stat()
652 … if (NULL == (entry = zend_hash_str_find_ptr(&phar->manifest, internal_file, internal_file_len))) { in phar_wrapper_stat()
655 phar_dostat(phar, entry, ssb, 0); in phar_wrapper_stat()
749 phar_entry_info *entry; in phar_wrapper_rename() local
843 …if (NULL != (entry = zend_hash_str_find_ptr(&(phar->manifest), ZSTR_VAL(resource_from->path)+1, ZS… in phar_wrapper_rename()
847 if (entry->is_deleted) { in phar_wrapper_rename()
854 memcpy((void *) &new, (void *) entry, sizeof(phar_entry_info)); in phar_wrapper_rename()
856 entry->is_deleted = 1; in phar_wrapper_rename()
857 entry->fp = NULL; in phar_wrapper_rename()
858 ZVAL_UNDEF(&entry->metadata_tracker.val); in phar_wrapper_rename()
859 entry->link = entry->tmp = NULL; in phar_wrapper_rename()
860 source = entry; in phar_wrapper_rename()
864 …entry = zend_hash_str_update_mem(&(phar->manifest), ZSTR_VAL(resource_to->path)+1, ZSTR_LEN(resour… in phar_wrapper_rename()
866 entry->filename = estrndup(ZSTR_VAL(resource_to->path)+1, ZSTR_LEN(resource_to->path)-1); in phar_wrapper_rename()
867 if (FAILURE == phar_copy_entry_fp(source, entry, &error)) { in phar_wrapper_rename()
872 zend_hash_str_del(&(phar->manifest), entry->filename, strlen(entry->filename)); in phar_wrapper_rename()
876 entry->is_modified = 1; in phar_wrapper_rename()
877 entry->filename_len = strlen(entry->filename); in phar_wrapper_rename()
878 is_dir = entry->is_dir; in phar_wrapper_rename()
901 entry = Z_PTR(b->val); in phar_wrapper_rename()
902 if (!entry->is_deleted && in phar_wrapper_rename()
913 entry->is_modified = 1; in phar_wrapper_rename()
914 efree(entry->filename); in phar_wrapper_rename()
916 entry->filename = estrndup(ZSTR_VAL(new_str_key), ZSTR_LEN(new_str_key)); in phar_wrapper_rename()
917 entry->filename_len = ZSTR_LEN(new_str_key); in phar_wrapper_rename()