mirror of
https://github.com/php/php-src.git
synced 2024-09-22 02:17:32 +00:00
- Fixed bug #49286 (php://input (php_stream_input_read) is broken)
This commit is contained in:
parent
5e733571b3
commit
767abb9b66
1
NEWS
1
NEWS
@ -26,6 +26,7 @@ PHP NEWS
|
||||
(Ilia)
|
||||
- Fixed bug #49289 (bcmath module doesn't compile with phpize configure).
|
||||
(Jani)
|
||||
- Fixed bug #49286 (php://input (php_stream_input_read) is broken). (Jani)
|
||||
- Fixed bug #49269 (Ternary operator fails on Iterator object when used inside
|
||||
foreach declaration). (Etienne, Dmitry)
|
||||
- Fixed bug #49236 (Missing PHP_SUBST(PDO_MYSQL_SHARED_LIBADD)). (Jani)
|
||||
|
@ -91,13 +91,14 @@ static size_t php_stream_input_read(php_stream *stream, char *buf, size_t count
|
||||
stream->eof = 1;
|
||||
read_bytes = 0;
|
||||
}
|
||||
/* Increment SG(read_post_bytes) only when something was actually read. */
|
||||
SG(read_post_bytes) += read_bytes;
|
||||
} else {
|
||||
stream->eof = 1;
|
||||
}
|
||||
}
|
||||
|
||||
*position += read_bytes;
|
||||
SG(read_post_bytes) += read_bytes;
|
||||
|
||||
return read_bytes;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user