Lines Matching refs:zip_fd

170     public $zip_fd = 0;
201 $this->zip_fd = 0;
1073 if (($this->zip_fd = @fopen($this->zipname, 'rb')) == 0) {
2037 //--(MAGIC-PclTrace)--//PclTraceFctMessage(__FILE__, __LINE__, 5, "Position in file : ".ftell($this->zip_fd)."'");
2038 @rewind($this->zip_fd);
2039 //--(MAGIC-PclTrace)--//PclTraceFctMessage(__FILE__, __LINE__, 5, "Position in file : ".ftell($this->zip_fd)."'");
2063 $v_buffer = fread($this->zip_fd, $v_read_size);
2071 $v_swap = $this->zip_fd;
2072 $this->zip_fd = $v_zip_temp_fd;
2089 $v_offset = @ftell($this->zip_fd);
2098 @fwrite($this->zip_fd, $v_buffer, $v_read_size);
2138 $v_size = @ftell($this->zip_fd) - $v_offset;
2152 $v_swap = $this->zip_fd;
2153 $this->zip_fd = $v_zip_temp_fd;
2191 if ($this->zip_fd != 0) {
2202 if (($this->zip_fd = @fopen($this->zipname, $p_mode)) == 0) {
2227 if ($this->zip_fd != 0)
2228 @fclose($this->zip_fd);
2229 $this->zip_fd = 0;
2265 $v_offset = @ftell($this->zip_fd);
2292 $v_size = @ftell($this->zip_fd) - $v_offset;
2548 $this->zip_fd,
2732 $p_header['offset'] = ftell($this->zip_fd);
2758 fwrite($this->zip_fd, $v_binary_data, 30);
2762 fwrite($this->zip_fd, $p_header['stored_filename'], strlen($p_header['stored_filename']));
2765 fwrite($this->zip_fd, $p_header['extra'], $p_header['extra_len']);
2819 fwrite($this->zip_fd, $v_binary_data, 46);
2823 fwrite($this->zip_fd, $p_header['stored_filename'], strlen($p_header['stored_filename']));
2826 fwrite($this->zip_fd, $p_header['extra'], $p_header['extra_len']);
2829 fwrite($this->zip_fd, $p_header['comment'], $p_header['comment_len']);
2863 fwrite($this->zip_fd, $v_binary_data, 22);
2867 fwrite($this->zip_fd, $p_comment, strlen($p_comment));
2892 if (($this->zip_fd = @fopen($this->zipname, 'rb')) == 0) {
2914 //--(MAGIC-PclTrace)--//PclTraceFctMessage(__FILE__, __LINE__, 3, "Position in file : ".ftell($this->zip_fd)."'");
2915 @rewind($this->zip_fd);
2916 //--(MAGIC-PclTrace)--//PclTraceFctMessage(__FILE__, __LINE__, 3, "Position in file : ".ftell($this->zip_fd)."'");
2917 if (@fseek($this->zip_fd, $v_central_dir['offset'])) {
2927 //--(MAGIC-PclTrace)--//PclTraceFctMessage(__FILE__, __LINE__, 3, "Position in file : ".ftell($this->zip_fd)."'");
3072 //--(MAGIC-PclTrace)--//PclTraceFctMessage(__FILE__, __LINE__, 4, "Position before rewind : ".ftell($this->zip_fd)."'");
3073 @rewind($this->zip_fd);
3074 //--(MAGIC-PclTrace)--//PclTraceFctMessage(__FILE__, __LINE__, 4, "Position after rewind : ".ftell($this->zip_fd)."'");
3075 if (@fseek($this->zip_fd, $v_pos_entry)) {
3087 //--(MAGIC-PclTrace)--//PclTraceFctMessage(__FILE__, __LINE__, 3, "Position after fseek : ".ftell($this->zip_fd)."'");
3104 $v_pos_entry = ftell($this->zip_fd);
3262 //--(MAGIC-PclTrace)--//PclTraceFctMessage(__FILE__, __LINE__, 5, "Position before rewind : ".ftell($this->zip_fd)."'");
3263 @rewind($this->zip_fd);
3264 //--(MAGIC-PclTrace)--//PclTraceFctMessage(__FILE__, __LINE__, 5, "Position after rewind : ".ftell($this->zip_fd)."'");
3265 if (@fseek($this->zip_fd, $v_header['offset'])) {
3278 //--(MAGIC-PclTrace)--//PclTraceFctMessage(__FILE__, __LINE__, 5, "Position after fseek : ".ftell($this->zip_fd)."'");
3646 $v_buffer = @fread($this->zip_fd, $v_read_size);
3669 $v_encryption_header = @fread($this->zip_fd, 12);
3673 $v_buffer = @fread($this->zip_fd, $p_entry['compressed_size']-12);
3683 $v_buffer = @fread($this->zip_fd, $p_entry['compressed_size']);
3834 $v_buffer = @fread($this->zip_fd, $p_entry['compressed_size']);
3844 $v_buffer = @fread($this->zip_fd, $p_entry['compressed_size']);
3925 $p_string = @fread($this->zip_fd, $p_entry['compressed_size']);
3930 $v_data = @fread($this->zip_fd, $p_entry['compressed_size']);
3962 $v_binary_data = @fread($this->zip_fd, 4);
3980 $v_binary_data = fread($this->zip_fd, 26);
4003 $p_header['filename'] = fread($this->zip_fd, $v_data['filename_len']);
4009 $p_header['extra'] = fread($this->zip_fd, $v_data['extra_len']);
4083 $v_binary_data = @fread($this->zip_fd, 4);
4101 $v_binary_data = fread($this->zip_fd, 42);
4125 $p_header['filename'] = fread($this->zip_fd, $p_header['filename_len']);
4132 $p_header['extra'] = fread($this->zip_fd, $p_header['extra_len']);
4139 $p_header['comment'] = fread($this->zip_fd, $p_header['comment_len']);
4262 @fseek($this->zip_fd, $v_size);
4263 //--(MAGIC-PclTrace)--//PclTraceFctMessage(__FILE__, __LINE__, 4, 'Position at end of zip file : \''.ftell($this->zip_fd).'\'');
4264 if (@ftell($this->zip_fd) != $v_size) {
4278 @fseek($this->zip_fd, $v_size - 22);
4279 //--(MAGIC-PclTrace)--//PclTraceFctMessage(__FILE__, __LINE__, 4, 'Position after min central position : \''.ftell($this->zip_fd).'\'');
4280 if (($v_pos = @ftell($this->zip_fd)) != $v_size - 22) {
4290 $v_binary_data = @fread($this->zip_fd, 4);
4301 $v_pos = ftell($this->zip_fd);
4310 @fseek($this->zip_fd, $v_size - $v_maximum_size);
4311 if (@ftell($this->zip_fd) != $v_size - $v_maximum_size) {
4319 //--(MAGIC-PclTrace)--//PclTraceFctMessage(__FILE__, __LINE__, 4, 'Position after max central position : \''.ftell($this->zip_fd).'\'');
4322 $v_pos = ftell($this->zip_fd);
4326 $v_byte = @fread($this->zip_fd, 1);
4333 //--(MAGIC-PclTrace)--//PclTraceFctMessage(__FILE__, __LINE__, 4, 'Found End Central Dir signature at position : \''.ftell($this->zip_fd).'\'');
4355 $v_binary_data = fread($this->zip_fd, 18);
4399 $p_central_dir['comment'] = fread($this->zip_fd, $v_data['comment_size']);
4455 //--(MAGIC-PclTrace)--//PclTraceFctMessage(__FILE__, __LINE__, 5, "Position in file : ".ftell($this->zip_fd)."'");
4456 @rewind($this->zip_fd);
4457 //--(MAGIC-PclTrace)--//PclTraceFctMessage(__FILE__, __LINE__, 5, "Position in file : ".ftell($this->zip_fd)."'");
4462 //--(MAGIC-PclTrace)--//PclTraceFctMessage(__FILE__, __LINE__, 5, "Position before rewind : ".ftell($this->zip_fd)."'");
4463 @rewind($this->zip_fd);
4464 //--(MAGIC-PclTrace)--//PclTraceFctMessage(__FILE__, __LINE__, 5, "Position after rewind : ".ftell($this->zip_fd)."'");
4465 if (@fseek($this->zip_fd, $v_pos_entry)) {
4476 //--(MAGIC-PclTrace)--//PclTraceFctMessage(__FILE__, __LINE__, 5, "Position after fseek : ".ftell($this->zip_fd)."'");
4616 //--(MAGIC-PclTrace)--//PclTraceFctMessage(__FILE__, __LINE__, 5, "Position before rewind : ".ftell($this->zip_fd)."'");
4617 @rewind($this->zip_fd);
4618 //--(MAGIC-PclTrace)--//PclTraceFctMessage(__FILE__, __LINE__, 5, "Position after rewind : ".ftell($this->zip_fd)."'");
4619 if (@fseek($this->zip_fd, $v_header_list[$i]['offset'])) {
4632 //--(MAGIC-PclTrace)--//PclTraceFctMessage(__FILE__, __LINE__, 5, "Position after fseek : ".ftell($this->zip_fd)."'");
4672 if (($v_result = PclZipUtilCopyBlock($this->zip_fd, $v_temp_zip->zip_fd, $v_header_list[$i]['compressed_size'])) != 1) {
4684 $v_offset = @ftell($v_temp_zip->zip_fd);
4715 $v_size = @ftell($v_temp_zip->zip_fd) - $v_offset;
4873 //--(MAGIC-PclTrace)--//PclTraceFctMessage(__FILE__, __LINE__, 5, "Position in zip : ".ftell($this->zip_fd)."'");
4874 @rewind($this->zip_fd);
4875 //--(MAGIC-PclTrace)--//PclTraceFctMessage(__FILE__, __LINE__, 5, "Position in zip : ".ftell($this->zip_fd)."'");
4898 //--(MAGIC-PclTrace)--//PclTraceFctMessage(__FILE__, __LINE__, 5, "Position in archive_to_add : ".ftell($p_archive_to_add->zip_fd)."'");
4899 @rewind($p_archive_to_add->zip_fd);
4900 //--(MAGIC-PclTrace)--//PclTraceFctMessage(__FILE__, __LINE__, 5, "Position in archive_to_add : ".ftell($p_archive_to_add->zip_fd)."'");
4924 $v_buffer = fread($this->zip_fd, $v_read_size);
4934 $v_buffer = fread($p_archive_to_add->zip_fd, $v_read_size);
4948 $v_buffer = @fread($this->zip_fd, $v_read_size);
4958 $v_buffer = @fread($p_archive_to_add->zip_fd, $v_read_size);
4972 $v_swap = $this->zip_fd;
4973 $this->zip_fd = $v_zip_temp_fd;
4981 $this->zip_fd = null;
4992 $v_swap = $this->zip_fd;
4993 $this->zip_fd = $v_zip_temp_fd;
5068 @fwrite($this->zip_fd, $v_buffer, $v_read_size);