diff options
author | Wez Furlong <wez@php.net> | 2002-10-05 10:35:13 +0000 |
---|---|---|
committer | Wez Furlong <wez@php.net> | 2002-10-05 10:35:13 +0000 |
commit | 077fe52d8b650b5d1739aa55ab90f6ab6ad8461b (patch) | |
tree | 90af179612cfc891683ba1fbf5ba8d66874b93bf /main/php_streams.h | |
parent | 945ccfa76a8453ffc8fe4e514ef593c95fe377eb (diff) | |
download | php-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 'main/php_streams.h')
-rwxr-xr-x | main/php_streams.h | 2 |
1 files changed, 2 insertions, 0 deletions
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 |