| @@ 4750-4766 (lines=17) @@ | ||
| 4747 | } |
|
| 4748 | } |
|
| 4749 | // Parse the FNAME |
|
| 4750 | if ($this->flags & 8) |
|
| 4751 | { |
|
| 4752 | // Get the length of the filename |
|
| 4753 | $len = strcspn($this->compressed_data, "\x00", $this->position); |
|
| 4754 | // Check the length of the string is still valid |
|
| 4755 | $this->min_compressed_size += $len + 1; |
|
| 4756 | if ($this->compressed_size >= $this->min_compressed_size) |
|
| 4757 | { |
|
| 4758 | // Set the original filename to the given string |
|
| 4759 | $this->filename = substr($this->compressed_data, $this->position, $len); |
|
| 4760 | $this->position += $len + 1; |
|
| 4761 | } |
|
| 4762 | else |
|
| 4763 | { |
|
| 4764 | return false; |
|
| 4765 | } |
|
| 4766 | } |
|
| 4767 | // Parse the FCOMMENT |
|
| 4768 | if ($this->flags & 16) |
|
| 4769 | { |
|
| @@ 4768-4784 (lines=17) @@ | ||
| 4765 | } |
|
| 4766 | } |
|
| 4767 | // Parse the FCOMMENT |
|
| 4768 | if ($this->flags & 16) |
|
| 4769 | { |
|
| 4770 | // Get the length of the comment |
|
| 4771 | $len = strcspn($this->compressed_data, "\x00", $this->position); |
|
| 4772 | // Check the length of the string is still valid |
|
| 4773 | $this->min_compressed_size += $len + 1; |
|
| 4774 | if ($this->compressed_size >= $this->min_compressed_size) |
|
| 4775 | { |
|
| 4776 | // Set the original comment to the given string |
|
| 4777 | $this->comment = substr($this->compressed_data, $this->position, $len); |
|
| 4778 | $this->position += $len + 1; |
|
| 4779 | } |
|
| 4780 | else |
|
| 4781 | { |
|
| 4782 | return false; |
|
| 4783 | } |
|
| 4784 | } |
|
| 4785 | // Parse the FHCRC |
|
| 4786 | if ($this->flags & 2) |
|
| 4787 | { |
|