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 = entry; in phar_parse_url()
259 phar_entry_info *entry; in phar_wrapper_open_url() local
261 entry = (phar_entry_info *) ecalloc(1, sizeof(phar_entry_info)); in phar_wrapper_open_url()
262 entry->is_temp_dir = 1; in phar_wrapper_open_url()
263 entry->filename = estrndup("", 0); in phar_wrapper_open_url()
264 entry->filename_len = 0; in phar_wrapper_open_url()
265 entry->phar = phar; in phar_wrapper_open_url()
266 entry->offset = entry->offset_abs = 0; in phar_wrapper_open_url()
267 entry->compressed_filesize = entry->uncompressed_filesize = phar->halt_offset; in phar_wrapper_open_url()
268 entry->is_crc_checked = 1; in phar_wrapper_open_url()
273 idata->internal_file = entry; in phar_wrapper_open_url()
275 ++(entry->phar->refcount); in phar_wrapper_open_url()
277 ++(entry->fp_refcount); in phar_wrapper_open_url()
321 char *entry = idata->internal_file->filename, *cwd; in phar_wrapper_open_url() local
327 } else if ((cwd = strrchr(entry, '/'))) { in phar_wrapper_open_url()
328 PHAR_G(cwd_len) = cwd - entry; in phar_wrapper_open_url()
329 PHAR_G(cwd) = estrndup(entry, PHAR_G(cwd_len)); in phar_wrapper_open_url()
367 phar_entry_info *entry; in phar_stream_read() local
370 entry = phar_get_link_source(data->internal_file); in phar_stream_read()
372 entry = data->internal_file; in phar_stream_read()
375 if (entry->is_deleted) { in phar_stream_read()
383 got = php_stream_read(data->fp, buf, MIN(count, entry->uncompressed_filesize - data->position)); in phar_stream_read()
385 stream->eof = (data->position == (zend_off_t) entry->uncompressed_filesize); in phar_stream_read()
397 phar_entry_info *entry; in phar_stream_seek() local
402 entry = phar_get_link_source(data->internal_file); in phar_stream_seek()
404 entry = data->internal_file; in phar_stream_seek()
409 temp = data->zero + entry->uncompressed_filesize + offset; in phar_stream_seek()
420 if (temp > data->zero + (zend_off_t) entry->uncompressed_filesize) { in phar_stream_seek()
558 phar_entry_info *entry; in phar_wrapper_stat() local
604 if (NULL != (entry = zend_hash_str_find_ptr(&phar->manifest, internal_file, internal_file_len))) { in phar_wrapper_stat()
605 phar_dostat(phar, entry, ssb, 0); in phar_wrapper_stat()
626 if (NULL == (entry = zend_hash_find_ptr(&phar->manifest, str_key))) { in phar_wrapper_stat()
629 if (!entry->tmp || !entry->is_mounted) { in phar_wrapper_stat()
632 test_len = spprintf(&test, MAXPATHLEN, "%s%s", entry->tmp, internal_file + ZSTR_LEN(str_key)); in phar_wrapper_stat()
643 … if (NULL == (entry = zend_hash_str_find_ptr(&phar->manifest, internal_file, internal_file_len))) { in phar_wrapper_stat()
646 phar_dostat(phar, entry, ssb, 0); in phar_wrapper_stat()
740 phar_entry_info *entry; in phar_wrapper_rename() local
833 …if (NULL != (entry = zend_hash_str_find_ptr(&(phar->manifest), resource_from->path+1, strlen(resou… in phar_wrapper_rename()
837 if (entry->is_deleted) { in phar_wrapper_rename()
844 memcpy((void *) &new, (void *) entry, sizeof(phar_entry_info)); in phar_wrapper_rename()
846 entry->is_deleted = 1; in phar_wrapper_rename()
847 entry->fp = NULL; in phar_wrapper_rename()
848 ZVAL_UNDEF(&entry->metadata); in phar_wrapper_rename()
849 entry->link = entry->tmp = NULL; in phar_wrapper_rename()
850 source = entry; in phar_wrapper_rename()
853 …entry = zend_hash_str_add_mem(&(phar->manifest), resource_to->path+1, strlen(resource_to->path)-1,… in phar_wrapper_rename()
855 entry->filename = estrdup(resource_to->path+1); in phar_wrapper_rename()
856 if (FAILURE == phar_copy_entry_fp(source, entry, &error)) { in phar_wrapper_rename()
861 zend_hash_str_del(&(phar->manifest), entry->filename, strlen(entry->filename)); in phar_wrapper_rename()
865 entry->is_modified = 1; in phar_wrapper_rename()
866 entry->filename_len = strlen(entry->filename); in phar_wrapper_rename()
867 is_dir = entry->is_dir; in phar_wrapper_rename()
890 entry = Z_PTR(b->val); in phar_wrapper_rename()
891 if (!entry->is_deleted && in phar_wrapper_rename()
902 entry->is_modified = 1; in phar_wrapper_rename()
903 efree(entry->filename); in phar_wrapper_rename()
905 entry->filename = estrndup(ZSTR_VAL(new_str_key), ZSTR_LEN(new_str_key)); in phar_wrapper_rename()
906 entry->filename_len = ZSTR_LEN(new_str_key); in phar_wrapper_rename()