#30529 [NEW]: ftp_size() does not return values larger than 2^31

From: Date: Fri, 22 Oct 2004 10:18:44 +0000
Subject: #30529 [NEW]: ftp_size() does not return values larger than 2^31
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-67941@lists.php.net to get a copy of this message
From: wittj at gmx dot net Operating system: linux-2.6.8-ck4 PHP version: 5.0.2 PHP Bug Type: FTP related Bug description: ftp_size() does not return values larger than 2^31 Description: ------------ On my FTP server I have a file which is about 4GB large. The FTP server (vsftpd) reports the file size correctly (checked with sniffer), however ftp_size() does only return a size of 2147483647 (2^31) bytes. Obviously ftp_size() does not support files larger than that, as I get the same result on other large files. Reproduce code: --------------- $conn_id = ftp_connect($server); $contents = ftp_nlist($conn_id, "."); foreach($contents as $file) { print ftp_size($conn_id, $file); } Expected result: ---------------- The correct file size Actual result: -------------- A file size of 2^31 bytes. -- Edit bug report at http://bugs.php.net/?id=30529&edit=1 -- Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=30529&r=trysnapshot4 Try a CVS snapshot (php5.0): http://bugs.php.net/fix.php?id=30529&r=trysnapshot50 Try a CVS snapshot (php5.1): http://bugs.php.net/fix.php?id=30529&r=trysnapshot51 Fixed in CVS: http://bugs.php.net/fix.php?id=30529&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=30529&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=30529&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=30529&r=needscript Try newer version: http://bugs.php.net/fix.php?id=30529&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=30529&r=support Expected behavior: http://bugs.php.net/fix.php?id=30529&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=30529&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=30529&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=30529&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=30529&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=30529&r=dst IIS Stability: http://bugs.php.net/fix.php?id=30529&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=30529&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=30529&r=float MySQL Configuration Error: http://bugs.php.net/fix.php?id=30529&r=mysqlcfg

« previous php.bugs (#67941) next »