note 98968 deleted from function.gzinflate by danbrown
| From: | danbrown@php.net | Date: | Mon, 19 Jul 2010 15:52:53 +0000 |
| Subject: | note 98968 deleted from function.gzinflate by danbrown | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-170971@lists.php.net to get a copy of this message | ||
Note Submitter: ldrut
----
The octet count may contain leading zeros so the inner loop of vitall at ua dot fm's routine
should read:
do{
$p = strpos($d,$rn,$ofs);
$len = hexdec(substr($d,$ofs,$p-$ofs));
if ($len == 0) break;
$str .= substr($d,$p+$lrn,$len);
$ofs = $p+$lrn*2+$len;
}while (true);