From 077fe52d8b650b5d1739aa55ab90f6ab6ad8461b Mon Sep 17 00:00:00 2001 From: Wez Furlong Date: Sat, 5 Oct 2002 10:35:13 +0000 Subject: 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. --- ext/standard/php_fopen_wrapper.c | 1 + 1 file changed, 1 insertion(+) (limited to 'ext/standard/php_fopen_wrapper.c') 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; } -- cgit v1.2.1