mirror of
https://github.com/php/php-src.git
synced 2026-04-28 18:53:33 +02:00
Fixed bug #50657 (copy() with an empty (zero-byte) HTTP source succeeds but returns false).
This commit is contained in:
@@ -8,6 +8,8 @@ PHP NEWS
|
||||
(Ilia)
|
||||
- Added stream_resolve_include_path(). (Mikko)
|
||||
|
||||
- Fixed bug #50657 (copy() with an empty (zero-byte) HTTP source succeeds
|
||||
but returns false). (Ilia)
|
||||
- Fixed bug #50636 (MySQLi_Result sets values before calling constructor).
|
||||
(Pierrick)
|
||||
- Fixed bug #50632 (filter_input() does not return default value if the
|
||||
|
||||
@@ -1396,7 +1396,7 @@ PHPAPI size_t _php_stream_copy_to_stream_ex(php_stream *src, php_stream *dest, s
|
||||
/* we've got at least 1 byte to read.
|
||||
* less than 1 is an error */
|
||||
|
||||
if (haveread > 0) {
|
||||
if (haveread > 0 || src->eof) {
|
||||
return SUCCESS;
|
||||
}
|
||||
return FAILURE;
|
||||
|
||||
Reference in New Issue
Block a user