mirror of
https://github.com/php/php-src.git
synced 2025-08-15 21:48:51 +02:00
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:
parent
945ccfa76a
commit
077fe52d8b
8 changed files with 151 additions and 132 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue