diff options
Diffstat (limited to 'ext/ftp/php_ftp.c')
-rw-r--r-- | ext/ftp/php_ftp.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/ftp/php_ftp.c b/ext/ftp/php_ftp.c index 3706dd7cb9..1012698966 100644 --- a/ext/ftp/php_ftp.c +++ b/ext/ftp/php_ftp.c @@ -489,7 +489,7 @@ PHP_FUNCTION(ftp_get) } php_stream_rewind(tmpstream); - if (php_stream_copy_to_stream(tmpstream, outstream, 0) == 0) { + if (php_stream_copy_to_stream(tmpstream, outstream, PHP_STREAM_COPY_ALL) == 0) { php_error(E_WARNING, "%s(): error writing %s", get_active_function_name(TSRMLS_C), local); RETVAL_FALSE; } |