From:             mweber at netprovide dot com
Operating system: SuSE Linux 10
PHP version:      5.2.3
PHP Bug Type:     FTP related
Bug description:  ftp_size() does not return work on large files

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 bug report at http://bugs.php.net/?id=41643&edit=1
-- 
Try a CVS snapshot (PHP 4.4): 
http://bugs.php.net/fix.php?id=41643&r=trysnapshot44
Try a CVS snapshot (PHP 5.2): 
http://bugs.php.net/fix.php?id=41643&r=trysnapshot52
Try a CVS snapshot (PHP 6.0): 
http://bugs.php.net/fix.php?id=41643&r=trysnapshot60
Fixed in CVS:                 http://bugs.php.net/fix.php?id=41643&r=fixedcvs
Fixed in release:             
http://bugs.php.net/fix.php?id=41643&r=alreadyfixed
Need backtrace:               http://bugs.php.net/fix.php?id=41643&r=needtrace
Need Reproduce Script:        http://bugs.php.net/fix.php?id=41643&r=needscript
Try newer version:            http://bugs.php.net/fix.php?id=41643&r=oldversion
Not developer issue:          http://bugs.php.net/fix.php?id=41643&r=support
Expected behavior:            http://bugs.php.net/fix.php?id=41643&r=notwrong
Not enough info:              
http://bugs.php.net/fix.php?id=41643&r=notenoughinfo
Submitted twice:              
http://bugs.php.net/fix.php?id=41643&r=submittedtwice
register_globals:             http://bugs.php.net/fix.php?id=41643&r=globals
PHP 3 support discontinued:   http://bugs.php.net/fix.php?id=41643&r=php3
Daylight Savings:             http://bugs.php.net/fix.php?id=41643&r=dst
IIS Stability:                http://bugs.php.net/fix.php?id=41643&r=isapi
Install GNU Sed:              http://bugs.php.net/fix.php?id=41643&r=gnused
Floating point limitations:   http://bugs.php.net/fix.php?id=41643&r=float
No Zend Extensions:           http://bugs.php.net/fix.php?id=41643&r=nozend
MySQL Configuration Error:    http://bugs.php.net/fix.php?id=41643&r=mysqlcfg

Reply via email to