function privAddList($p_filedescr_list, &$p_result_list, &$p_options)
{
$v_result=1;
$v_header_list = array();
if (($v_result = $this->PclZip::privAddFileList($p_filedescr_list, $v_header_list, $p_options)) != 1)
{
return $v_result;
}
$v_offset = @ftell($this->zip_fd);
for ($i=0,$v_count=0; $i<sizeof($v_header_list); $i++)
{
if ($v_header_list[$i]['status'] == 'ok') {
if (($v_result = $this->PclZip::privWriteCentralFileHeader($v_header_list[$i])) != 1) {
return $v_result;
}
$v_count++;
}
$this->PclZip::privConvertHeader2FileInfo($v_header_list[$i], $p_result_list[$i]);
}
$v_comment = '';
if (isset($p_options[PCLZIP_OPT_COMMENT])) {
$v_comment = $p_options[PCLZIP_OPT_COMMENT];
}
$v_size = @ftell($this->zip_fd)-$v_offset;
if (($v_result = $this->PclZip::privWriteCentralHeader($v_count, $v_size, $v_offset, $v_comment)) != 1)
{
unset($v_header_list);
return $v_result;
}
return $v_result;
}