Bug #51190 [Com]: ftp_put() returns false when transfer was successful

From: Date: Mon, 19 Mar 2018 22:58:59 +0000
Subject: Bug #51190 [Com]: ftp_put() returns false when transfer was successful
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-214413@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=51190&edit=1

 ID:                 51190
 Comment by:         mattficken@php.net
 Reported by:        alexclifford47 at gmail dot com
 Summary:            ftp_put() returns false when transfer was successful
 Status:             Re-Opened
 Type:               Bug
 Package:            FTP related
 Operating System:   Windows Server 2003 R2 32-bit
 PHP Version:        5.3.1
 Block user comment: N
 Private report:     N

 New Comment:

Also, can you repro this on PHP 7.1 or 7.2?


Previous Comments:
------------------------------------------------------------------------
[2018-03-19 16:54:44] cmb@php.net

> But also adding a check for a 221 response did.

According to RFC #959 a 221 reply is supposed to only be possible
for a QUIT command[1].

[1] <https://tools.ietf.org/html/rfc959#page-49>

------------------------------------------------------------------------
[2017-10-20 18:39:43] kalle@php.net

Unassigning as Ilia is not currently active

------------------------------------------------------------------------
[2017-08-17 03:38:02] linh232324 at gmail dot com

I have same issue on PHP 7

------------------------------------------------------------------------
[2016-11-28 17:41:40] cmb@php.net

Re-opening according to user comment.

------------------------------------------------------------------------
[2010-03-09 06:10:56] alexclifford47 at gmail dot com

I notice you added a check for the 200 response in ftp.c. This didn't fix the 
problem for me. But also adding a check for a 221 response did. Is it possible to 
have this added into the codebase too?

------------------------------------------------------------------------


The remainder of the comments for this report are too long. To view
the rest of the comments, please view the bug report online at

    https://bugs.php.net/bug.php?id=51190


--
Edit this bug report at https://bugs.php.net/bug.php?id=51190&edit=1


Thread (13 messages)

« previous php.bugs (#214413) next »