Skip to content

Commit

Permalink
For some reason, unlike every other array on this planet, unpack() st…
Browse files Browse the repository at this point in the history
…arts indexing at 1, not 0
  • Loading branch information
slusarz committed Oct 30, 2013
1 parent eec4302 commit af8caef
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion framework/Pack/lib/Horde/Pack.php
Expand Up @@ -142,7 +142,7 @@ public function unpack($data)
{
if ($data && is_string($data)) {
$mask = unpack('C*', $data[0]);
$mask = $mask[0];
$mask = reset($mask);
$data = substr($data, 1);

if ($mask & self::COMPRESS_MASK) {
Expand Down

0 comments on commit af8caef

Please sign in to comment.