Skip to content

Commit

Permalink
bindings: add spaces in the php module
Browse files Browse the repository at this point in the history
  • Loading branch information
rhash committed Jul 23, 2014
1 parent c76bc3a commit d370591
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions bindings/php/php_rhash.c
Expand Up @@ -315,11 +315,11 @@ static int _php_rhash_stream(INTERNAL_FUNCTION_PARAMETERS, rhash context, php_st
}

if (start >= 0) {
if(php_stream_seek(stream, start, SEEK_SET) < 0) return FAILURE;
if (php_stream_seek(stream, start, SEEK_SET) < 0) return FAILURE;
}

if (size >= 0) {
while(size > 0 && !php_stream_eof(stream)) {
while (size > 0 && !php_stream_eof(stream)) {
int length = php_stream_read(stream, data, (size < 8192 ? size : 8192));
if (!length) return FAILURE;
size -= length;
Expand Down

0 comments on commit d370591

Please sign in to comment.