From: Stefan Esser Date: Mon, 25 Nov 2002 22:58:26 +0000 (+0000) Subject: MFH X-Git-Tag: php-4.3.0RC2~24 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=c15ae3453562572a313ffe6966122fcac7b383ba;p=php MFH --- diff --git a/ext/standard/ftp_fopen_wrapper.c b/ext/standard/ftp_fopen_wrapper.c index a824812f58..5b9da1c8bb 100644 --- a/ext/standard/ftp_fopen_wrapper.c +++ b/ext/standard/ftp_fopen_wrapper.c @@ -150,6 +150,8 @@ php_stream * php_stream_url_wrap_ftp(php_stream_wrapper *wrapper, char *path, ch char *tpath, *ttpath, *hoststart=NULL; size_t file_size = 0; + tmp_line[0] = '\0'; + if (strchr(mode, 'a') || strchr(mode, '+')) { php_stream_wrapper_log_error(wrapper, options TSRMLS_CC, "FTP does not support simultaneous read/write connections."); return NULL;