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. --- main/php_streams.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'main/php_streams.h') diff --git a/main/php_streams.h b/main/php_streams.h index 3acd52624f..9a5f12c8fb 100755 --- a/main/php_streams.h +++ b/main/php_streams.h @@ -269,6 +269,8 @@ struct _php_stream { /* how much data to read when filling buffer */ size_t chunk_size; + int eof; + }; /* php_stream */ /* state definitions when closing down; these are private to streams.c */ #define PHP_STREAM_FCLOSE_NONE 0 -- cgit v1.2.1