keep previous test to avoid any behavior change

This commit is contained in:
Remi Collet 2013-04-02 16:31:36 +02:00
parent 8e8a75444c
commit 731a5c5104

View File

@ -1535,8 +1535,10 @@ PHPAPI int _php_stream_copy_to_stream_ex(php_stream *src, php_stream *dest, size
*len = didwrite; *len = didwrite;
/* read bytes match written */ /* we've got at least 1 byte to read
if (mapped == didwrite) { * less than 1 is an error
* AND read bytes match written */
if (mapped > 0 && mapped == didwrite) {
return SUCCESS; return SUCCESS;
} }
return FAILURE; return FAILURE;