Browse Source

Merge branch 'PHP-5.4' into PHP-5.5

* PHP-5.4:
  keep previous test to avoid any behavior change
pull/321/head
Remi Collet 13 years ago
parent
commit
44dbe6a815
  1. 6
      main/streams/streams.c

6
main/streams/streams.c

@ -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;

Loading…
Cancel
Save