php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #43399 PHP Warning: ftp_put(): PORT command successful
Submitted: 2007-11-25 10:28 UTC Modified: 2008-04-02 01:00 UTC
Votes:15
Avg. Score:4.3 ± 0.8
Reproduced:14 of 14 (100.0%)
Same Version:8 (57.1%)
Same OS:6 (42.9%)
From: lgfb at iname dot com Assigned:
Status: No Feedback Package: FTP related
PHP Version: 5.2.5 OS: Windows XP
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: lgfb at iname dot com
New email:
PHP Version: OS:

 

 [2007-11-25 10:28 UTC] 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.

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2008-04-02 01:00 UTC] php-bugs at lists dot php dot net
No feedback was provided for this bug for over a week, so it is
being suspended automatically. If you are able to provide the
information that was originally requested, please do so and change
the status of the bug back to "Open".
 [2009-10-22 15:27 UTC] stephan dot binder at rbb-online dot de
OS Suse Linux 11.1

I am experiencing this issue with php5.2.9

after update on php5.2.11 : the same


i don't have the problem on another server (Suse Linux 10.3) with php5.2.5 installed)
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Tue Apr 16 19:01:31 2024 UTC