|  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
View Add Comment Developer Edit
Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know!
Just going to say 'Me too!'? Don't clutter the database with that please — but make sure to vote on the bug!
Your email address:
Solve the problem:
45 - 31 = ?
Subscribe to this entry?

 [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: Thu Dec 07 13:01:27 2023 UTC