1
0
mirror of https://github.com/php/php-src.git synced 2026-04-27 01:48:26 +02:00

Merge branch 'PHP-5.4' into PHP-5.5

* PHP-5.4:
  keep previous test to avoid any behavior change
This commit is contained in:
Remi Collet
2013-04-02 16:31:45 +02:00
+4 -2
View File
@@ -1530,8 +1530,10 @@ PHPAPI int _php_stream_copy_to_stream_ex(php_stream *src, php_stream *dest, size
*len = didwrite;
/* read bytes match written */
if (mapped == didwrite) {
/* we've got at least 1 byte to read
* less than 1 is an error
* AND read bytes match written */
if (mapped > 0 && mapped == didwrite) {
return SUCCESS;
}
return FAILURE;