ID: 46162 Updated by: [EMAIL PROTECTED] Reported By: TorokAlpar at Gmail dot com -Status: Open +Status: Feedback Bug Type: Streams related Operating System: Windows PHP Version: 5.2.6 New Comment:
Please try using this CVS snapshot: http://snaps.php.net/php5.2-latest.tar.gz For Windows (zip): http://snaps.php.net/win32/php5.2-win32-latest.zip For Windows (installer): http://snaps.php.net/win32/php5.2-win32-installer-latest.msi Previous Comments: ------------------------------------------------------------------------ [2008-09-23 17:19:32] 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. ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=46162&edit=1