From: Rasmus Lerdorf Date: Tue, 1 Nov 2011 15:15:51 +0000 (+0000) Subject: Fix bug 60183 X-Git-Tag: php-5.5.0alpha1~953 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=d1d9d56a96369acab1dff446b78503bce0ff0f2a;p=php Fix bug 60183 --- diff --git a/ext/ftp/ftp.c b/ext/ftp/ftp.c index 2ace44c8b7..d925c72f62 100644 --- a/ext/ftp/ftp.c +++ b/ext/ftp/ftp.c @@ -1122,6 +1122,9 @@ ftp_putcmd(ftpbuf_t *ftp, const char *cmd, const char *args) data = ftp->outbuf; + /* Clear the extra-lines buffer */ + ftp->extra = NULL; + if (my_send(ftp, ftp->fd, data, size) != size) { return 0; }