#41643 [Com]: ftp_size() does not return work on large files
| From: | mweber2 at netprovide dot com | Date: | Sat, 09 Jun 2007 18:53:31 +0000 |
| Subject: | #41643 [Com]: ftp_size() does not return work on large files | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-113604@lists.php.net to get a copy of this message | ||
ID: 41643
Comment by: mweber2 at netprovide dot com
Reported By: mweber at netprovide dot com
Status: Open
Bug Type: FTP related
Operating System: SuSE Linux 10
PHP Version: 5.2.3
New Comment:
well it should be a string instead of int for the additional argument
float ftp_size ( resource $ftp_stream, string $remote_file [, string
$unit='B'])
Previous Comments:
------------------------------------------------------------------------
[2007-06-09 18:48:27] mweber at netprovide dot com
Description:
------------
ftp_size() does not work on files lager than 2GB...
I know, that PHP is limited to handle just 32bit integer values...
My Idea would be, that you alter this function to:
float ftp_size ( resource $ftp_stream, string $remote_file [, int
$unit='B'])
where $unit can be:
GB
MB
KB
B
you just need to change the return value to float and calculate the
internal "string"(size) to the value requested...
this would produce smaller numbers...
Reproduce code:
---------------
Expected result:
----------------
Actual result:
--------------
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=41643&edit=1