| @@ 292-295 (lines=4) @@ | ||
| 289 | $this->GetCode($data, $bInit); |
|
| 290 | ||
| 291 | $this->Fresh = 1; |
|
| 292 | for ($i = 0; $i < $this->ClearCode; $i++) { |
|
| 293 | $this->Next[$i] = 0; |
|
| 294 | $this->Vals[$i] = $i; |
|
| 295 | } |
|
| 296 | ||
| 297 | for (; $i < (1 << $this->MAX_LZW_BITS); $i++) { |
|
| 298 | $this->Next[$i] = 0; |
|
| @@ 325-328 (lines=4) @@ | ||
| 322 | ||
| 323 | while (($Code = $this->GetCode($data, $bInit)) >= 0) { |
|
| 324 | if ($Code == $this->ClearCode) { |
|
| 325 | for ($i = 0; $i < $this->ClearCode; $i++) { |
|
| 326 | $this->Next[$i] = 0; |
|
| 327 | $this->Vals[$i] = $i; |
|
| 328 | } |
|
| 329 | ||
| 330 | for (; $i < (1 << $this->MAX_LZW_BITS); $i++) { |
|
| 331 | $this->Next[$i] = 0; |
|