Lines Matching refs:etemp
510 phar_entry_info *entry, etemp; in phar_get_or_create_entry_data() local
549 memset(&etemp, 0, sizeof(phar_entry_info)); in phar_get_or_create_entry_data()
550 etemp.filename_len = path_len; in phar_get_or_create_entry_data()
551 etemp.fp_type = PHAR_MOD; in phar_get_or_create_entry_data()
552 etemp.fp = php_stream_fopen_tmpfile(); in phar_get_or_create_entry_data()
554 if (!etemp.fp) { in phar_get_or_create_entry_data()
562 etemp.fp_refcount = 1; in phar_get_or_create_entry_data()
565 etemp.is_dir = 1; in phar_get_or_create_entry_data()
566 etemp.flags = etemp.old_flags = PHAR_ENT_PERM_DEF_DIR; in phar_get_or_create_entry_data()
568 etemp.flags = etemp.old_flags = PHAR_ENT_PERM_DEF_FILE; in phar_get_or_create_entry_data()
571 etemp.filename_len--; /* strip trailing / */ in phar_get_or_create_entry_data()
576 etemp.is_modified = 1; in phar_get_or_create_entry_data()
577 etemp.timestamp = time(0); in phar_get_or_create_entry_data()
578 etemp.is_crc_checked = 1; in phar_get_or_create_entry_data()
579 etemp.phar = phar; in phar_get_or_create_entry_data()
580 etemp.filename = estrndup(path, path_len); in phar_get_or_create_entry_data()
581 etemp.is_zip = phar->is_zip; in phar_get_or_create_entry_data()
584 etemp.is_tar = phar->is_tar; in phar_get_or_create_entry_data()
585 etemp.tar_type = etemp.is_dir ? TAR_DIR : TAR_FILE; in phar_get_or_create_entry_data()
588 …(NULL == (entry = zend_hash_str_add_mem(&phar->manifest, etemp.filename, path_len, (void*)&etemp, … in phar_get_or_create_entry_data()
589 php_stream_close(etemp.fp); in phar_get_or_create_entry_data()
591 …spprintf(error, 0, "phar error: unable to add new entry \"%s\" to phar \"%s\"", etemp.filename, ph… in phar_get_or_create_entry_data()
594 efree(etemp.filename); in phar_get_or_create_entry_data()
599 php_stream_close(etemp.fp); in phar_get_or_create_entry_data()
600 efree(etemp.filename); in phar_get_or_create_entry_data()