ID:               43399
 Updated by:       [EMAIL PROTECTED]
 Reported By:      lgfb at iname dot com
-Status:           Open
+Status:           Feedback
 Bug Type:         FTP related
 Operating System: Windows XP
 PHP Version:      5.2.5
 New Comment:

Please try using this CVS snapshot:

  http://snaps.php.net/php5.2-latest.tar.gz
 
For Windows (zip):
 
  http://snaps.php.net/win32/php5.2-win32-latest.zip

For Windows (installer):

  http://snaps.php.net/win32/php5.2-win32-installer-latest.msi




Previous Comments:
------------------------------------------------------------------------

[2007-11-25 10:28:27] lgfb at iname dot com

Description:
------------
same as already described in #30894:
The command 
 $upload1 = ftp_put($conn_id1, $file, $file, FTP_ASCII);
tries to upload a file, but only creates a 0-byte-large file on the
destination and drops the warning on the command line "PHP Warning: 
ftp_put(): PORT command successful".
With version 5.2.4 and the same script coding the error does not occur
(tried with a downgrade).

Reproduce code:
---------------
 $upload1 = ftp_put($conn_id1, $file, $file, FTP_ASCII);
PHP Warning:  ftp_put(): PORT command successful in
D:\ftproot\shell-auslesendateistatus.php on line 103

Expected result:
----------------
Size of the file in destination should have been at least 33kB after
upload!

Actual result:
--------------
a zero-byte-file was created, resp. the available one truncated to 0.


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


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

Reply via email to