Lines Matching refs:newentry
2244 phar_entry_info *entry, newentry; in phar_convert_to_other() local
2290 newentry = *entry; in phar_convert_to_other()
2292 if (newentry.link) { in phar_convert_to_other()
2293 newentry.link = estrdup(newentry.link); in phar_convert_to_other()
2297 if (newentry.tmp) { in phar_convert_to_other()
2298 newentry.tmp = estrdup(newentry.tmp); in phar_convert_to_other()
2302 if (FAILURE == phar_copy_file_contents(&newentry, phar->fp)) { in phar_convert_to_other()
2310 newentry.filename = estrndup(newentry.filename, newentry.filename_len); in phar_convert_to_other()
2312 phar_metadata_tracker_clone(&newentry.metadata_tracker); in phar_convert_to_other()
2314 newentry.is_zip = phar->is_zip; in phar_convert_to_other()
2315 newentry.is_tar = phar->is_tar; in phar_convert_to_other()
2317 if (newentry.is_tar) { in phar_convert_to_other()
2318 newentry.tar_type = (entry->is_dir ? TAR_DIR : TAR_FILE); in phar_convert_to_other()
2323 newentry.header_offset = 0; in phar_convert_to_other()
2324 newentry.is_modified = 1; in phar_convert_to_other()
2325 newentry.phar = phar; in phar_convert_to_other()
2326 …newentry.old_flags = newentry.flags & ~PHAR_ENT_COMPRESSION_MASK; /* remove compression from old_f… in phar_convert_to_other()
2327 phar_set_inode(&newentry); in phar_convert_to_other()
2328 …zend_hash_str_add_mem(&(phar->manifest), newentry.filename, newentry.filename_len, (void*)&newentr… in phar_convert_to_other()
2329 phar_add_virtual_dirs(phar, newentry.filename, newentry.filename_len); in phar_convert_to_other()
3444 phar_entry_info *oldentry, newentry = {0}, *temp; in PHP_METHOD() local
3503 memcpy((void *) &newentry, oldentry, sizeof(phar_entry_info)); in PHP_METHOD()
3505 phar_metadata_tracker_clone(&newentry.metadata_tracker); in PHP_METHOD()
3507 newentry.filename = estrndup(tmp_new_file, tmp_len); in PHP_METHOD()
3508 newentry.filename_len = tmp_len; in PHP_METHOD()
3509 newentry.fp_refcount = 0; in PHP_METHOD()
3512 if (FAILURE == phar_copy_entry_fp(oldentry, &newentry, &error)) { in PHP_METHOD()
3513 efree(newentry.filename); in PHP_METHOD()
3514 php_stream_close(newentry.fp); in PHP_METHOD()
3521 …zend_hash_str_add_mem(&oldentry->phar->manifest, ZSTR_VAL(new_file), tmp_len, &newentry, sizeof(ph… in PHP_METHOD()