mirror of
https://github.com/php/php-src.git
synced 2025-08-15 21:48:51 +02:00
Fix bug #51056: fread() on blocking stream will block even if data is available
This is applied only on socket connection which already returns immediately if there is no data in the buffer.
This commit is contained in:
parent
1c1481bbb5
commit
18fe337bae
6 changed files with 94 additions and 19 deletions
|
@ -225,6 +225,7 @@ struct _php_stream {
|
|||
size_t readbuflen;
|
||||
zend_off_t readpos;
|
||||
zend_off_t writepos;
|
||||
ssize_t didread;
|
||||
|
||||
/* how much data to read when filling buffer */
|
||||
size_t chunk_size;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue