From 636829345ea4ce06766b55b43adfd2b47628fada Mon Sep 17 00:00:00 2001 From: Wez Furlong Date: Sat, 16 Mar 2002 02:48:35 +0000 Subject: Allow php_stream_copy_to_stream to do nothing when used with code that calculates a max length of zero. (Thanks again Marcus). --- ext/ftp/php_ftp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'ext/ftp/php_ftp.c') 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; } -- cgit v1.2.1