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.
This commit is contained in:
Wez Furlong 2002-10-05 10:35:13 +00:00
parent 945ccfa76a
commit 077fe52d8b
8 changed files with 151 additions and 132 deletions

View file

@ -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