Lines Matching refs:newentry

2222 	phar_entry_info *entry, newentry;  in phar_convert_to_other()  local
2287 newentry = *entry; in phar_convert_to_other()
2289 if (newentry.link) { in phar_convert_to_other()
2290 newentry.link = estrdup(newentry.link); in phar_convert_to_other()
2294 if (newentry.tmp) { in phar_convert_to_other()
2295 newentry.tmp = estrdup(newentry.tmp); in phar_convert_to_other()
2299 newentry.metadata_str.c = 0; in phar_convert_to_other()
2301 if (FAILURE == phar_copy_file_contents(&newentry, phar->fp TSRMLS_CC)) { in phar_convert_to_other()
2309 newentry.filename = estrndup(newentry.filename, newentry.filename_len); in phar_convert_to_other()
2311 if (newentry.metadata) { in phar_convert_to_other()
2314 t = newentry.metadata; in phar_convert_to_other()
2315 ALLOC_ZVAL(newentry.metadata); in phar_convert_to_other()
2316 *newentry.metadata = *t; in phar_convert_to_other()
2317 zval_copy_ctor(newentry.metadata); in phar_convert_to_other()
2318 Z_SET_REFCOUNT_P(newentry.metadata, 1); in phar_convert_to_other()
2320 newentry.metadata_str.c = NULL; in phar_convert_to_other()
2321 newentry.metadata_str.len = 0; in phar_convert_to_other()
2324 newentry.is_zip = phar->is_zip; in phar_convert_to_other()
2325 newentry.is_tar = phar->is_tar; in phar_convert_to_other()
2327 if (newentry.is_tar) { in phar_convert_to_other()
2328 newentry.tar_type = (entry->is_dir ? TAR_DIR : TAR_FILE); in phar_convert_to_other()
2331 newentry.is_modified = 1; in phar_convert_to_other()
2332 newentry.phar = phar; in phar_convert_to_other()
2333newentry.old_flags = newentry.flags & ~PHAR_ENT_COMPRESSION_MASK; /* remove compression from old_f… in phar_convert_to_other()
2334 phar_set_inode(&newentry TSRMLS_CC); in phar_convert_to_other()
2335 …zend_hash_add(&(phar->manifest), newentry.filename, newentry.filename_len, (void*)&newentry, sizeo… in phar_convert_to_other()
2336 phar_add_virtual_dirs(phar, newentry.filename, newentry.filename_len TSRMLS_CC); in phar_convert_to_other()
3439 phar_entry_info *oldentry, newentry = {0}, *temp; in PHP_METHOD() local
3496 memcpy((void *) &newentry, oldentry, sizeof(phar_entry_info)); in PHP_METHOD()
3498 if (newentry.metadata) { in PHP_METHOD()
3501 t = newentry.metadata; in PHP_METHOD()
3502 ALLOC_ZVAL(newentry.metadata); in PHP_METHOD()
3503 *newentry.metadata = *t; in PHP_METHOD()
3504 zval_copy_ctor(newentry.metadata); in PHP_METHOD()
3505 Z_SET_REFCOUNT_P(newentry.metadata, 1); in PHP_METHOD()
3507 newentry.metadata_str.c = NULL; in PHP_METHOD()
3508 newentry.metadata_str.len = 0; in PHP_METHOD()
3511 newentry.filename = estrndup(newfile, newfile_len); in PHP_METHOD()
3512 newentry.filename_len = newfile_len; in PHP_METHOD()
3513 newentry.fp_refcount = 0; in PHP_METHOD()
3516 if (FAILURE == phar_copy_entry_fp(oldentry, &newentry, &error TSRMLS_CC)) { in PHP_METHOD()
3517 efree(newentry.filename); in PHP_METHOD()
3518 php_stream_close(newentry.fp); in PHP_METHOD()
3525 …zend_hash_add(&oldentry->phar->manifest, newfile, newfile_len, (void*)&newentry, sizeof(phar_entry… in PHP_METHOD()