diff options
-rwxr-xr-x | main/streams.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/main/streams.c b/main/streams.c index e71a42585c..9e61916bd9 100755 --- a/main/streams.c +++ b/main/streams.c @@ -495,7 +495,7 @@ static void php_stream_fill_read_buffer(php_stream *stream, size_t size TSRMLS_D TSRMLS_CC); } - if (justread > 0) { + if (justread != (size_t)-1) { stream->writepos += justread; } } |