mirror of
https://codeberg.org/icewind/streams.git
synced 2026-06-03 16:44:07 +02:00
Merge pull request #8 from rullzer/fix/read_bytes_is_not_requested_bytes
Fix read in callbackwrapper
This commit is contained in:
commit
74d0347f39
1 changed files with 1 additions and 1 deletions
|
|
@ -90,7 +90,7 @@ class CallbackWrapper extends Wrapper {
|
|||
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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue