summaryrefslogtreecommitdiff
path: root/ext/standard/php_fopen_wrapper.c
diff options
context:
space:
mode:
authorWez Furlong <wez@php.net>2002-10-05 10:35:13 +0000
committerWez Furlong <wez@php.net>2002-10-05 10:35:13 +0000
commit077fe52d8b650b5d1739aa55ab90f6ab6ad8461b (patch)
tree90af179612cfc891683ba1fbf5ba8d66874b93bf /ext/standard/php_fopen_wrapper.c
parent945ccfa76a8453ffc8fe4e514ef593c95fe377eb (diff)
downloadphp-git-077fe52d8b650b5d1739aa55ab90f6ab6ad8461b.tar.gz
This seems to resolve the issues with fgets.
I've moved EOF detection into the streams layer; a stream reader implementation should set stream->eof when it detects EOF. Fixed test for user streams - it still fails but that is due to an output buffering bug.
Diffstat (limited to 'ext/standard/php_fopen_wrapper.c')
-rw-r--r--ext/standard/php_fopen_wrapper.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/ext/standard/php_fopen_wrapper.c b/ext/standard/php_fopen_wrapper.c
index 0ca83d356a..6299e28ac1 100644
--- a/ext/standard/php_fopen_wrapper.c
+++ b/ext/standard/php_fopen_wrapper.c
@@ -39,6 +39,7 @@ static size_t php_stream_output_write(php_stream *stream, const char *buf, size_
static size_t php_stream_output_read(php_stream *stream, char *buf, size_t count TSRMLS_DC)
{
+ stream->eof = 1;
return 0;
}