Bug #63543 [Opn->Fbk]: ftp_raw out of sync

From: Date: Thu, 04 Mar 2021 11:22:40 +0000
Subject: Bug #63543 [Opn->Fbk]: ftp_raw out of sync
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-232535@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=63543&edit=1

 ID:                 63543
 Updated by:         cmb@php.net
 Reported by:        bar at root dot co dot il
 Summary:            ftp_raw out of sync
-Status:             Open
+Status:             Feedback
 Type:               Bug
 Package:            FTP related
 Operating System:   CentOS 6.3
 PHP Version:        5.3.18
-Assigned To:        
+Assigned To:        cmb
 Block user comment: N
 Private report:     N

 New Comment:

I wonder whether that bug has ever been fixed properly.  It seems
to me that <https://github.com/php/php-src/pull/6718>
would be the
proper fix.  Could you please check with that patch applied?


Previous Comments:
------------------------------------------------------------------------
[2012-11-16 20:52:32] bar at root dot co dot il

Description:
------------
The same bug that affect versions < 5.3.9 (reported as fixed in 5.3.9) is back in 5.3.18 (or
maybe before..)
https://bugs.php.net/bug.php?id=60183 <- the
original bug report


Test script:
---------------
ftp_raw($ftp,'PASV'); // Output: 227 Entering Passive Mode
ftp_raw($ftp,'STOR file'); // Output: 150 Opening ASCII mode data connection for test
ftp_raw($ftp,'NOOP'); // Output: 226 Transfer complete.

Expected result:
----------------
ftp_raw($ftp,'PASV'); // Output: 227 Entering Passive Mode
ftp_raw($ftp,'STOR file'); // Output: 150 Opening ASCII mode data connection for test
&& 226 Transfer complete.
ftp_raw($ftp,'NOOP'); // Output: 200 NOOP ok.



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



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


Thread (3 messages)

« previous php.bugs (#232535) next »