1
0
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:
Ilia Alshanetsky
2010-01-06 12:54:53 +00:00
parent d2281d1dff
commit d5b2007bed
2 changed files with 3 additions and 1 deletions
+2
View File
@@ -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
+1 -1
View File
@@ -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;