Lines Matching refs:newentry

2262 	phar_entry_info *entry, newentry;  in phar_convert_to_other()  local
2311 newentry = *entry; in phar_convert_to_other()
2313 if (newentry.link) { in phar_convert_to_other()
2314 newentry.link = estrdup(newentry.link); in phar_convert_to_other()
2318 if (newentry.tmp) { in phar_convert_to_other()
2319 newentry.tmp = estrdup(newentry.tmp); in phar_convert_to_other()
2323 newentry.metadata_str.s = NULL; in phar_convert_to_other()
2325 if (FAILURE == phar_copy_file_contents(&newentry, phar->fp)) { in phar_convert_to_other()
2333 newentry.filename = estrndup(newentry.filename, newentry.filename_len); in phar_convert_to_other()
2335 if (Z_TYPE(newentry.metadata) != IS_UNDEF) { in phar_convert_to_other()
2336 zval_copy_ctor(&newentry.metadata); in phar_convert_to_other()
2337 newentry.metadata_str.s = NULL; in phar_convert_to_other()
2340 newentry.is_zip = phar->is_zip; in phar_convert_to_other()
2341 newentry.is_tar = phar->is_tar; in phar_convert_to_other()
2343 if (newentry.is_tar) { in phar_convert_to_other()
2344 newentry.tar_type = (entry->is_dir ? TAR_DIR : TAR_FILE); in phar_convert_to_other()
2347 newentry.is_modified = 1; in phar_convert_to_other()
2348 newentry.phar = phar; in phar_convert_to_other()
2349newentry.old_flags = newentry.flags & ~PHAR_ENT_COMPRESSION_MASK; /* remove compression from old_f… in phar_convert_to_other()
2350 phar_set_inode(&newentry); in phar_convert_to_other()
2351 …zend_hash_str_add_mem(&(phar->manifest), newentry.filename, newentry.filename_len, (void*)&newentr… in phar_convert_to_other()
2352 phar_add_virtual_dirs(phar, newentry.filename, newentry.filename_len); in phar_convert_to_other()
3453 phar_entry_info *oldentry, newentry = {0}, *temp; in PHP_METHOD() local
3512 memcpy((void *) &newentry, oldentry, sizeof(phar_entry_info)); in PHP_METHOD()
3514 if (Z_TYPE(newentry.metadata) != IS_UNDEF) { in PHP_METHOD()
3515 zval_copy_ctor(&newentry.metadata); in PHP_METHOD()
3516 newentry.metadata_str.s = NULL; in PHP_METHOD()
3519 newentry.filename = estrndup(newfile, newfile_len); in PHP_METHOD()
3520 newentry.filename_len = newfile_len; in PHP_METHOD()
3521 newentry.fp_refcount = 0; in PHP_METHOD()
3524 if (FAILURE == phar_copy_entry_fp(oldentry, &newentry, &error)) { in PHP_METHOD()
3525 efree(newentry.filename); in PHP_METHOD()
3526 php_stream_close(newentry.fp); in PHP_METHOD()
3533 …zend_hash_str_add_mem(&oldentry->phar->manifest, newfile, newfile_len, &newentry, sizeof(phar_entr… in PHP_METHOD()