Skip to content

Commit

Permalink
Merge pull request #8 from rullzer/fix/read_bytes_is_not_requested_bytes
Browse files Browse the repository at this point in the history
Fix read in callbackwrapper
  • Loading branch information
icewind1991 authored Feb 14, 2019
2 parents 0a78597 + 0bc7fe4 commit 74d0347
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/CallbackWrapper.php
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ public function stream_open($path, $mode, $options, &$opened_path) {
public function stream_read($count) {
$result = parent::stream_read($count);
if (is_callable($this->readCallback)) {
call_user_func($this->readCallback, $count);
call_user_func($this->readCallback, $result);
}
return $result;
}
Expand Down

0 comments on commit 74d0347

Please sign in to comment.