|  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
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
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If this is not your bug, you can add a comment by following this link.
If this is your bug, but you forgot your password, you can retrieve your password here.
Bug Type:
From: lgfb at iname dot com
New email:
PHP Version: OS:


 [2007-11-25 10:28 UTC] lgfb at iname dot com
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.


Add a Patch

Pull Requests

Add a Pull Request


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-2023 The PHP Group
All rights reserved.
Last updated: Wed Dec 06 05:01:28 2023 UTC