Lines Matching refs:newentry
2234 phar_entry_info *entry, newentry; in phar_convert_to_other() local
2280 newentry = *entry; in phar_convert_to_other()
2282 if (newentry.link) { in phar_convert_to_other()
2283 newentry.link = estrdup(newentry.link); in phar_convert_to_other()
2287 if (newentry.tmp) { in phar_convert_to_other()
2288 newentry.tmp = estrdup(newentry.tmp); in phar_convert_to_other()
2292 if (FAILURE == phar_copy_file_contents(&newentry, phar->fp)) { in phar_convert_to_other()
2300 newentry.filename = estrndup(newentry.filename, newentry.filename_len); in phar_convert_to_other()
2302 phar_metadata_tracker_clone(&newentry.metadata_tracker); in phar_convert_to_other()
2304 newentry.is_zip = phar->is_zip; in phar_convert_to_other()
2305 newentry.is_tar = phar->is_tar; in phar_convert_to_other()
2307 if (newentry.is_tar) { in phar_convert_to_other()
2308 newentry.tar_type = (entry->is_dir ? TAR_DIR : TAR_FILE); in phar_convert_to_other()
2313 newentry.header_offset = 0; in phar_convert_to_other()
2314 newentry.is_modified = 1; in phar_convert_to_other()
2315 newentry.phar = phar; in phar_convert_to_other()
2316 …newentry.old_flags = newentry.flags & ~PHAR_ENT_COMPRESSION_MASK; /* remove compression from old_f… in phar_convert_to_other()
2317 phar_set_inode(&newentry); in phar_convert_to_other()
2318 …zend_hash_str_add_mem(&(phar->manifest), newentry.filename, newentry.filename_len, (void*)&newentr… in phar_convert_to_other()
2319 phar_add_virtual_dirs(phar, newentry.filename, newentry.filename_len); in phar_convert_to_other()
3429 phar_entry_info *oldentry, newentry = {0}, *temp; in PHP_METHOD() local
3488 memcpy((void *) &newentry, oldentry, sizeof(phar_entry_info)); in PHP_METHOD()
3490 phar_metadata_tracker_clone(&newentry.metadata_tracker); in PHP_METHOD()
3492 newentry.filename = estrndup(tmp_new_file, tmp_len); in PHP_METHOD()
3493 newentry.filename_len = tmp_len; in PHP_METHOD()
3494 newentry.fp_refcount = 0; in PHP_METHOD()
3497 if (FAILURE == phar_copy_entry_fp(oldentry, &newentry, &error)) { in PHP_METHOD()
3498 efree(newentry.filename); in PHP_METHOD()
3499 php_stream_close(newentry.fp); in PHP_METHOD()
3506 …zend_hash_str_add_mem(&oldentry->phar->manifest, ZSTR_VAL(new_file), tmp_len, &newentry, sizeof(ph… in PHP_METHOD()