Lines Matching refs:newentry

2300 	phar_entry_info *entry, newentry;  in phar_convert_to_other()  local
2349 newentry = *entry; in phar_convert_to_other()
2351 if (newentry.link) { in phar_convert_to_other()
2352 newentry.link = estrdup(newentry.link); in phar_convert_to_other()
2356 if (newentry.tmp) { in phar_convert_to_other()
2357 newentry.tmp = estrdup(newentry.tmp); in phar_convert_to_other()
2361 newentry.metadata_str.s = NULL; in phar_convert_to_other()
2363 if (FAILURE == phar_copy_file_contents(&newentry, phar->fp)) { in phar_convert_to_other()
2371 newentry.filename = estrndup(newentry.filename, newentry.filename_len); in phar_convert_to_other()
2373 if (Z_TYPE(newentry.metadata) != IS_UNDEF) { in phar_convert_to_other()
2374 zval_copy_ctor(&newentry.metadata); in phar_convert_to_other()
2375 newentry.metadata_str.s = NULL; in phar_convert_to_other()
2378 newentry.is_zip = phar->is_zip; in phar_convert_to_other()
2379 newentry.is_tar = phar->is_tar; in phar_convert_to_other()
2381 if (newentry.is_tar) { in phar_convert_to_other()
2382 newentry.tar_type = (entry->is_dir ? TAR_DIR : TAR_FILE); in phar_convert_to_other()
2385 newentry.is_modified = 1; in phar_convert_to_other()
2386 newentry.phar = phar; in phar_convert_to_other()
2387newentry.old_flags = newentry.flags & ~PHAR_ENT_COMPRESSION_MASK; /* remove compression from old_f… in phar_convert_to_other()
2388 phar_set_inode(&newentry); in phar_convert_to_other()
2389 …zend_hash_str_add_mem(&(phar->manifest), newentry.filename, newentry.filename_len, (void*)&newentr… in phar_convert_to_other()
2390 phar_add_virtual_dirs(phar, newentry.filename, newentry.filename_len); in phar_convert_to_other()
3504 phar_entry_info *oldentry, newentry = {0}, *temp; in PHP_METHOD() local
3566 memcpy((void *) &newentry, oldentry, sizeof(phar_entry_info)); in PHP_METHOD()
3568 if (Z_TYPE(newentry.metadata) != IS_UNDEF) { in PHP_METHOD()
3569 zval_copy_ctor(&newentry.metadata); in PHP_METHOD()
3570 newentry.metadata_str.s = NULL; in PHP_METHOD()
3573 newentry.filename = estrndup(newfile, newfile_len); in PHP_METHOD()
3574 newentry.filename_len = (int)newfile_len; in PHP_METHOD()
3575 newentry.fp_refcount = 0; in PHP_METHOD()
3578 if (FAILURE == phar_copy_entry_fp(oldentry, &newentry, &error)) { in PHP_METHOD()
3579 efree(newentry.filename); in PHP_METHOD()
3580 php_stream_close(newentry.fp); in PHP_METHOD()
3587 …zend_hash_str_add_mem(&oldentry->phar->manifest, newfile, newfile_len, &newentry, sizeof(phar_entr… in PHP_METHOD()