diff options
author | Marcus Boerger <helly@php.net> | 2006-02-28 14:44:23 +0000 |
---|---|---|
committer | Marcus Boerger <helly@php.net> | 2006-02-28 14:44:23 +0000 |
commit | 40a610887d90837153275582104f31afb3e5c5f1 (patch) | |
tree | 9b9086f91096091fbdaf53f537e91fa8d1e3ac91 /ext/phar | |
parent | 47a1a84ea50333aca6dad82cd48578e092a96716 (diff) | |
download | php-git-40a610887d90837153275582104f31afb3e5c5f1.tar.gz |
- Need to set eof flag when inner stream has eof condition
Diffstat (limited to 'ext/phar')
-rw-r--r-- | ext/phar/phar.c | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/ext/phar/phar.c b/ext/phar/phar.c index 1586d42f7e..01ec4970a7 100644 --- a/ext/phar/phar.c +++ b/ext/phar/phar.c @@ -1028,7 +1028,13 @@ static size_t phar_read(php_stream *stream, char *buf, size_t count TSRMLS_DC) / { phar_entry_data *data = (phar_entry_data *)stream->abstract; - return php_stream_read(data->fp, buf, count); + size_t got = php_stream_read(data->fp, buf, count); + + if (data->fp->eof) { + stream->eof = 1; + } + + return got; } /* }}} */ |