diff options
author | Wez Furlong <wez@php.net> | 2002-03-16 02:48:35 +0000 |
---|---|---|
committer | Wez Furlong <wez@php.net> | 2002-03-16 02:48:35 +0000 |
commit | 636829345ea4ce06766b55b43adfd2b47628fada (patch) | |
tree | b492c19733f5331e0b56f2c0fb6793af26716514 /ext/ftp/php_ftp.c | |
parent | 94b6c6e87fe11ba9e4e0b28dc9eb42f775a32820 (diff) | |
download | php-git-636829345ea4ce06766b55b43adfd2b47628fada.tar.gz |
Allow php_stream_copy_to_stream to do nothing when used with code
that calculates a max length of zero. (Thanks again Marcus).
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; } |