ID: 30439
User updated by: dmp-php at dplhenterprises dot com
Reported By: dmp-php at dplhenterprises dot com
Status: Open
Bug Type: FTP related
Operating System: Windows 2000
PHP Version: 4.3.9
New Comment:
I'm sorry, but I don't understand what you need from me. I included a
complete example script in my original report (see below). If can be
more specific about what else I need to provide you, I will be happy to
do so.
Thanks
Previous Comments:
[2004-12-05 01:00:02] 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".
[2004-11-29 12:15:57] mailbox2 at ibelgique dot com
Hi,
Here is a test script. When fixing this bug, please also look at bug
27633 which may be related.
Thanks!
David
--- Script start ---\n";
$conn_id = ftp_connect($ftpserver);
if ($conn_id == false) { echo "Could not connect to FTP server
$ftpserver.\n"; exit(); }
$result_login = ftp_login($conn_id, $username, $password);
if ($result_login == false) { echo "Could not login to FTP server
$ftpserver.\n"; exit(); }
$result_get = ftp_get($conn_id, $localfile, $remotefile, $ftpmode);
if ($result_get == false) { echo "Could not get the remote file
$remotefile to the local file $localfile.\n"; exit(); }
ftp_close($conn_id);
echo "--- Script end ---\n";
?>
[2004-11-27 16:58:50] [EMAIL PROTECTED]
Thank you for this bug report. To properly diagnose the problem, we
need a short but complete example script to be able to reproduce
this bug ourselves.
A proper reproducing script starts with ,
is max. 10-20 lines long and does not require any external
resources such as databases, etc.
If possible, make the script source available online and provide
an URL to it here. Try avoid embedding huge scripts into the report.
------------------------
[2004-10-15 01:46:56] dmp-php at dplhenterprises dot com
Description:
When using ftp_get() or ftp_fget() in FTP_ASCII mode and fetching from
an OpenVMS server runing the UCX FTP server (version appears
irrelevant), extra characters are added to the end of the file.
It appears to be the end of the last complete buffer when the final
read doesn't completely fill the buffer at end of file.
This does not happen with an IIS FTP server. I have been unable to test
with a *nix server.
I've tried fetching the file with both WS_FTP and the standard Windows
FTP client and neither of them produced corrupt files.
Reproduce code:
---
close();
die( "Unable to log in to bcsaxp.bcs.com as "
. "myusername " . $php_errormsg );
}
if( !ftp_get( $f, $wipfil, $srcfil, FTP_ASCII ))
die( "Unable to GET file {$srcfil} " . $php_errormsg );
ftp_close( $f );
?>
Expected result:
Another test message for MPS
This is the plain text version of this message.
It contains a tabbed table.
Column 1Column 2
L1-C1 L1-C2
L2-C1 L2-C2
Actual result:
--
Another test message for MPS
This is the plain text version of this message.
It contains a tabbed table.
Column 1Column 2
L1-C1 L1-C2
L2-C1 L2-C2
n 2
L1-C1 L1-C2
L2-C1 L2-C2