Lines Matching refs:p_entry

3497   function privExtractFile(&$p_entry, $p_path, $p_remove_path, $p_remove_all_path, &$p_options)  argument
3513 if ($this->privCheckFileHeaders($v_header, $p_entry) != 1) {
3520 if (($p_entry['external']&0x00000010)==0x00000010) {
3523 $p_entry['status'] = "filtered";
3531 $p_entry['filename'] = basename($p_entry['filename']);
3538 if (PclZipUtilPathInclusion($p_remove_path, $p_entry['filename']) == 2)
3543 $p_entry['status'] = "filtered";
3551 if (substr($p_entry['filename'], 0, $p_remove_path_size) == $p_remove_path)
3556 $p_entry['filename'] = substr($p_entry['filename'], $p_remove_path_size);
3564 $p_entry['filename'] = $p_path."/".$p_entry['filename'];
3572 $p_entry['filename']);
3577 "Filename '".$p_entry['filename']."' is "
3591 $this->privConvertHeader2FileInfo($p_entry, $v_local_header);
3599 $p_entry['status'] = "skipped";
3607 $p_entry['status'] = "aborted";
3613 $p_entry['filename'] = $v_local_header['filename'];
3620 if ($p_entry['status'] == 'ok') {
3623 if (file_exists($p_entry['filename']))
3628 if (is_dir($p_entry['filename']))
3633 $p_entry['status'] = "already_a_directory";
3643 "Filename '".$p_entry['filename']."' is "
3651 else if (!is_writeable($p_entry['filename']))
3656 $p_entry['status'] = "write_protected";
3666 "Filename '".$p_entry['filename']."' exists "
3675 else if (filemtime($p_entry['filename']) > $p_entry['mtime'])
3685 $p_entry['status'] = "newer_exist";
3695 "Newer version of '".$p_entry['filename']."' exists "
3710 … if ((($p_entry['external']&0x00000010)==0x00000010) || (substr($p_entry['filename'], -1) == '/'))
3711 $v_dir_to_check = $p_entry['filename'];
3712 else if (!strstr($p_entry['filename'], "/"))
3715 $v_dir_to_check = dirname($p_entry['filename']);
3717 …if (($v_result = $this->privDirCheck($v_dir_to_check, (($p_entry['external']&0x00000010)==0x000000…
3721 $p_entry['status'] = "path_creation_fail";
3732 if ($p_entry['status'] == 'ok') {
3735 if (!(($p_entry['external']&0x00000010)==0x00000010))
3738 if ($p_entry['compression'] == 0) {
3742 if (($v_dest_file = @fopen($p_entry['filename'], 'wb')) == 0)
3747 $p_entry['status'] = "write_error";
3757 $v_size = $p_entry['compressed_size'];
3775 touch($p_entry['filename'], $p_entry['mtime']);
3783 if (($p_entry['flag'] & 1) == 1) {
3803 $v_buffer = @fread($this->zip_fd, $p_entry['compressed_size']);
3814 $p_entry['status'] = "error";
3821 if (($v_dest_file = @fopen($p_entry['filename'], 'wb')) == 0) {
3825 $p_entry['status'] = "write_error";
3832 @fwrite($v_dest_file, $v_file_content, $p_entry['size']);
3839 @touch($p_entry['filename'], $p_entry['mtime']);
3847 @chmod($p_entry['filename'], $p_options[PCLZIP_OPT_SET_CHMOD]);
3855 if ($p_entry['status'] == "aborted") {
3856 $p_entry['status'] = "skipped";
3865 $this->privConvertHeader2FileInfo($p_entry, $v_local_header);
3891 function privExtractFileInOutput(&$p_entry, &$p_options) argument
3905 if ($this->privCheckFileHeaders($v_header, $p_entry) != 1) {
3915 $this->privConvertHeader2FileInfo($p_entry, $v_local_header);
3923 $p_entry['status'] = "skipped";
3931 $p_entry['status'] = "aborted";
3937 $p_entry['filename'] = $v_local_header['filename'];
3945 if ($p_entry['status'] == 'ok') {
3948 if (!(($p_entry['external']&0x00000010)==0x00000010)) {
3950 if ($p_entry['compressed_size'] == $p_entry['size']) {
3955 $v_buffer = @fread($this->zip_fd, $p_entry['compressed_size']);
3966 $v_buffer = @fread($this->zip_fd, $p_entry['compressed_size']);
3981 if ($p_entry['status'] == "aborted") {
3982 $p_entry['status'] = "skipped";
3991 $this->privConvertHeader2FileInfo($p_entry, $v_local_header);
4016 function privExtractFileAsString(&$p_entry, &$p_string) argument
4033 if ($this->privCheckFileHeaders($v_header, $p_entry) != 1) {
4040 if (!(($p_entry['external']&0x00000010)==0x00000010))
4044 if ($p_entry['compression'] == 0) {
4049 $p_string = @fread($this->zip_fd, $p_entry['compressed_size']);
4055 $v_data = @fread($this->zip_fd, $p_entry['compressed_size']);