php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #46162 ftp_nb_fget stops receiveing at magick 2,920 bytes
Submitted: 2008-09-23 17:19 UTC Modified: 2008-10-06 01:00 UTC
From: TorokAlpar at Gmail dot com Assigned:
Status: No Feedback Package: Streams related
PHP Version: 5.2.6 OS: Windows
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: TorokAlpar at Gmail dot com
New email:
PHP Version: OS:

 

 [2008-09-23 17:19 UTC] TorokAlpar at Gmail dot com
Description:
------------
using ftp_nb_fget() to download a file from ftp always gets only 2,920 bytes. 

Reproduce code:
---------------
$rStream = fopen('test.zip','x');
ftp_nb_fget($rFtp,$rStream,$fullPath(),FTP_BINARY);
sleep(58);

Expected result:
----------------
Download complete file.

Actual result:
--------------
Downloads only 2,920 bytes, the file size doesn't influence this result unless less than 2,920 in witch case the function works as expected. Also tried with FTP_ASCII same result.  

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2008-10-06 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".
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Tue Mar 19 06:01:30 2024 UTC