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 1abe545231..cc51a84ffe 100644 --- a/ext/ftp/php_ftp.c +++ b/ext/ftp/php_ftp.c @@ -516,7 +516,7 @@ PHP_FUNCTION(ftp_get) RETURN_FALSE; } - if (!ftp_get(ftp, outstream, remote, xtype, resumepos) || php_stream_error(tmpstream)) { + if (!ftp_get(ftp, outstream, remote, xtype, resumepos) || php_stream_error(outstream)) { php_stream_close(outstream); php_error(E_WARNING, "%s(): %s", get_active_function_name(TSRMLS_C), ftp->inbuf); RETURN_FALSE; |