From 09f8573a77e498348a405054b5c28bcecbb0a26f Mon Sep 17 00:00:00 2001 From: Rasmus Lerdorf Date: Tue, 1 Nov 2011 15:15:51 +0000 Subject: [PATCH] Fix bug 60183 --- NEWS | 3 +++ ext/ftp/ftp.c | 3 +++ 2 files changed, 6 insertions(+) diff --git a/NEWS b/NEWS index 9a998d47a9..e2ac9dcdb8 100644 --- a/NEWS +++ b/NEWS @@ -131,6 +131,9 @@ PHP NEWS - Fileinfo: . Fixed bug #60094 (C++ comment fails in c89). (Laruence) +- FTP: + . Fixed bug #60183 (out of sync ftp responses). (bram at ebskamp dot me, rasmus) + 23 Aug 2011, PHP 5.3.8 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; } -- 2.50.1