summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIlia Alshanetsky <iliaa@php.net>2010-03-04 12:52:58 +0000
committerIlia Alshanetsky <iliaa@php.net>2010-03-04 12:52:58 +0000
commit8ad656aa3a59041eeff3dee4024143b8e62c364b (patch)
tree157ccb4aa2aa267e5ec34cf57e92b280e5cae31e
parent2bb2f49b271628d98dde87767807fce56fe21594 (diff)
downloadphp-git-8ad656aa3a59041eeff3dee4024143b8e62c364b.tar.gz
Fixed bug #51190 (ftp_put() returns false when transfer was successful).
-rw-r--r--ext/ftp/ftp.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/ftp/ftp.c b/ext/ftp/ftp.c
index a18234bbfc..4129c0db11 100644
--- a/ext/ftp/ftp.c
+++ b/ext/ftp/ftp.c
@@ -949,7 +949,7 @@ ftp_put(ftpbuf_t *ftp, const char *path, php_stream *instream, ftptype_t type, i
}
ftp->data = data = data_close(ftp, data);
- if (!ftp_getresp(ftp) || (ftp->resp != 226 && ftp->resp != 250)) {
+ if (!ftp_getresp(ftp) || (ftp->resp != 226 && ftp->resp != 250 && ftp->resp != 200)) {
goto bail;
}
return 1;