|
@@ 184-187 (lines=4) @@
|
| 181 |
|
$this->GetCode($data, $bInit); |
| 182 |
|
|
| 183 |
|
$this->Fresh = 1; |
| 184 |
|
for($i = 0; $i < $this->ClearCode; $i++) { |
| 185 |
|
$this->Next[$i] = 0; |
| 186 |
|
$this->Vals[$i] = $i; |
| 187 |
|
} |
| 188 |
|
|
| 189 |
|
for(; $i < (1 << $this->MAX_LZW_BITS); $i++) { |
| 190 |
|
$this->Next[$i] = 0; |
|
@@ 218-221 (lines=4) @@
|
| 215 |
|
|
| 216 |
|
while(($Code = $this->GetCode($data, $bInit)) >= 0) { |
| 217 |
|
if($Code == $this->ClearCode) { |
| 218 |
|
for($i = 0; $i < $this->ClearCode; $i++) { |
| 219 |
|
$this->Next[$i] = 0; |
| 220 |
|
$this->Vals[$i] = $i; |
| 221 |
|
} |
| 222 |
|
|
| 223 |
|
for(; $i < (1 << $this->MAX_LZW_BITS); $i++) { |
| 224 |
|
$this->Next[$i] = 0; |