Skip to content
This repository has been archived by the owner on Oct 26, 2023. It is now read-only.

Commit

Permalink
Fixes the case where fread(1) returns an empty string
Browse files Browse the repository at this point in the history
Fix added from rdblue/avro-php
  • Loading branch information
alumarcu authored and mdio committed Feb 25, 2020
1 parent e63a17a commit 922a5d9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/avro/datum.php
Original file line number Diff line number Diff line change
Expand Up @@ -946,7 +946,7 @@ public function skip_int() { return $this->skip_long(); }
protected function skip_long()
{
$b = $this->next_byte();
while (0 != ($b & 0x80))
while ($b == '' || 0 != ($b & 0x80))
$b = $this->next_byte();
}

Expand Down

0 comments on commit 922a5d9

Please sign in to comment.