Lines Matching refs:header
42 var $header = null; variable in File_Archive_Reader_Zip
89 if ($this->header !== null && $this->data === null) {
90 $toSkip = $this->header['CLen'];
101 $header = $this->source->getData(4);
102 if (PEAR::isError($header)) {
103 return $header;
105 if ($header == "\x50\x4b\x03\x04") {
107 $header = $this->source->getData(26);
108 if (PEAR::isError($header)) {
109 return $header;
111 $this->header = unpack(
113 $header);
116 if ($this->header['Method'] != 0 &&
117 $this->header['Method'] != 8 &&
118 $this->header['Method'] != 12) {
120 "handle compression method {$this->header['Method']}");
122 if ($this->header['Flag'] & 1) {
126 if ($this->header['Flag'] & 8) {
132 $this->header['CRC'] = $centralDirEntry['CRC'];
133 $this->header['CLen'] = $centralDirEntry['CLen'];
134 $this->header['NLen'] = $centralDirEntry['NLen'];
136 if ($this->header['Flag'] & 32) {
140 if ($this->header['Flag'] & 64) {
146 7=>$this->header['NLen'],
148 ($this->header['Time'] & 0xF800) >> 11, //hour
149 ($this->header['Time'] & 0x07E0) >> 5, //minute
150 ($this->header['Time'] & 0x001F) >> 1, //second
151 ($this->header['Date'] & 0x01E0) >> 5, //month
152 ($this->header['Date'] & 0x001F) , //day
153 (($this->header['Date'] & 0xFE00) >> 9) + 1980 //year
159 $this->currentFilename = $this->source->getData($this->header['File']);
161 $error = $this->source->skip($this->header['Extra']);
168 'CRC' => $this->header['CRC'],
169 'CLen' => $this->header['CLen']
263 $this->data = $this->source->getData($this->header['CLen']);
267 if ($this->header['Method'] == 8) {
270 if ($this->header['Method'] == 12) {
274 if (crc32($this->data) != $this->header['CRC']) {
291 $seek = 30 + $this->header['File'] + $this->header['Extra'] + $this->header['CLen'];
297 $size = 30 + $this->header['File'] + $this->header['Extra'] + $this->header['CLen'];
476 $header = $this->source->getData(16);
479 if (PEAR::isError($header)) {
480 return $header;
483 $header = unpack('VCRC/VCLen/VNLen/vFileLength/vExtraLength', $header);
484 $this->centralDirectory[] = array('CRC' => $header['CRC'],
485 'CLen' => $header['CLen'],
486 'NLen' => $header['NLen']);
487 $nbSkipped += $this->source->skip(14 + $header['FileLength'] + $header['ExtraLength']);