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()
257 phar_entry_info *entry; in phar_wrapper_open_url() local
259 entry = (phar_entry_info *) ecalloc(1, sizeof(phar_entry_info)); in phar_wrapper_open_url()
260 entry->is_temp_dir = 1; in phar_wrapper_open_url()
261 entry->filename = estrndup("", 0); in phar_wrapper_open_url()
262 entry->filename_len = 0; in phar_wrapper_open_url()
263 entry->phar = phar; in phar_wrapper_open_url()
264 entry->offset = entry->offset_abs = 0; in phar_wrapper_open_url()
265 entry->compressed_filesize = entry->uncompressed_filesize = phar->halt_offset; in phar_wrapper_open_url()
266 entry->is_crc_checked = 1; in phar_wrapper_open_url()
271 idata->internal_file = entry; in phar_wrapper_open_url()
273 ++(entry->phar->refcount); in phar_wrapper_open_url()
275 ++(entry->fp_refcount); in phar_wrapper_open_url()
319 char *entry = idata->internal_file->filename, *cwd; in phar_wrapper_open_url() local
325 } else if ((cwd = strrchr(entry, '/'))) { in phar_wrapper_open_url()
326 PHAR_G(cwd_len) = cwd - entry; in phar_wrapper_open_url()
327 PHAR_G(cwd) = estrndup(entry, PHAR_G(cwd_len)); in phar_wrapper_open_url()
365 phar_entry_info *entry; in phar_stream_read() local
368 entry = phar_get_link_source(data->internal_file); in phar_stream_read()
370 entry = data->internal_file; in phar_stream_read()
373 if (entry->is_deleted) { in phar_stream_read()
381 …got = php_stream_read(data->fp, buf, MIN(count, (size_t)(entry->uncompressed_filesize - data->posi… in phar_stream_read()
383 stream->eof = (data->position == (zend_off_t) entry->uncompressed_filesize); in phar_stream_read()
395 phar_entry_info *entry; in phar_stream_seek() local
400 entry = phar_get_link_source(data->internal_file); in phar_stream_seek()
402 entry = data->internal_file; in phar_stream_seek()
407 temp = data->zero + entry->uncompressed_filesize + offset; in phar_stream_seek()
418 if (temp > data->zero + (zend_off_t) entry->uncompressed_filesize) { in phar_stream_seek()
556 phar_entry_info *entry; in phar_wrapper_stat() local
602 if (NULL != (entry = zend_hash_str_find_ptr(&phar->manifest, internal_file, internal_file_len))) { in phar_wrapper_stat()
603 phar_dostat(phar, entry, ssb, 0); in phar_wrapper_stat()
624 if (NULL == (entry = zend_hash_find_ptr(&phar->manifest, str_key))) { in phar_wrapper_stat()
627 if (!entry->tmp || !entry->is_mounted) { in phar_wrapper_stat()
630 test_len = spprintf(&test, MAXPATHLEN, "%s%s", entry->tmp, internal_file + ZSTR_LEN(str_key)); in phar_wrapper_stat()
641 … if (NULL == (entry = zend_hash_str_find_ptr(&phar->manifest, internal_file, internal_file_len))) { in phar_wrapper_stat()
644 phar_dostat(phar, entry, ssb, 0); in phar_wrapper_stat()
738 phar_entry_info *entry; in phar_wrapper_rename() local
831 …if (NULL != (entry = zend_hash_str_find_ptr(&(phar->manifest), ZSTR_VAL(resource_from->path)+1, ZS… in phar_wrapper_rename()
835 if (entry->is_deleted) { in phar_wrapper_rename()
842 memcpy((void *) &new, (void *) entry, sizeof(phar_entry_info)); in phar_wrapper_rename()
844 entry->is_deleted = 1; in phar_wrapper_rename()
845 entry->fp = NULL; in phar_wrapper_rename()
846 ZVAL_UNDEF(&entry->metadata_tracker.val); in phar_wrapper_rename()
847 entry->link = entry->tmp = NULL; in phar_wrapper_rename()
848 source = entry; in phar_wrapper_rename()
851 …entry = zend_hash_str_add_mem(&(phar->manifest), ZSTR_VAL(resource_to->path)+1, ZSTR_LEN(resource_… in phar_wrapper_rename()
853 entry->filename = estrndup(ZSTR_VAL(resource_to->path)+1, ZSTR_LEN(resource_to->path)-1); in phar_wrapper_rename()
854 if (FAILURE == phar_copy_entry_fp(source, entry, &error)) { in phar_wrapper_rename()
859 zend_hash_str_del(&(phar->manifest), entry->filename, strlen(entry->filename)); in phar_wrapper_rename()
863 entry->is_modified = 1; in phar_wrapper_rename()
864 entry->filename_len = strlen(entry->filename); in phar_wrapper_rename()
865 is_dir = entry->is_dir; in phar_wrapper_rename()
888 entry = Z_PTR(b->val); in phar_wrapper_rename()
889 if (!entry->is_deleted && in phar_wrapper_rename()
900 entry->is_modified = 1; in phar_wrapper_rename()
901 efree(entry->filename); in phar_wrapper_rename()
903 entry->filename = estrndup(ZSTR_VAL(new_str_key), ZSTR_LEN(new_str_key)); in phar_wrapper_rename()
904 entry->filename_len = ZSTR_LEN(new_str_key); in phar_wrapper_rename()