Skip to content

Commit 91e13db

Browse files
committed
Fixed bug for read dictionaries from streams
https://bugs.php.net/bug.php?id=30936
1 parent eeffd38 commit 91e13db

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/phpMorphy/Storage/File.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ function readUnsafe($offset, $len) {
3636
throw new phpMorphy_Exception("Can`t seek to $offset offset");
3737
}
3838

39-
return fread($this->resource, $len);
39+
return stream_get_contents($this->resource, $len);
4040
}
4141

4242
function open($fileName) {
@@ -46,4 +46,4 @@ function open($fileName) {
4646

4747
return $fh;
4848
}
49-
}
49+
}

0 commit comments

Comments
 (0)