#20446 [NEW]: negative filesize() returned on large files > 2Gb

From: Date: Fri, 15 Nov 2002 15:23:22 +0000
Subject: #20446 [NEW]: negative filesize() returned on large files > 2Gb
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-24984@lists.php.net to get a copy of this message
From: andrew.robinson@gni.co.uk Operating system: NT4 - SP 6 PHP version: 4.2.3 PHP Bug Type: *Directory/Filesystem functions Bug description: negative filesize() returned on large files > 2Gb the following works fine on small files (<2Gb) but returns negative numbers for files larger. while ( $file = readdir($dp) ){ clearstatcache(); if (! ereg("^[.]+$|^$",$file) ){ $stats = stat("$DIRNAME$file"); echo "$DIRNAME$file\t" . $stats[7] . "\t" filesize("$DIRNAME$file") . "\n"; } } -- Edit bug report at http://bugs.php.net/?id=20446&edit=1 -- Try a CVS snapshot: http://bugs.php.net/fix.php?id=20446&r=trysnapshot Fixed in CVS: http://bugs.php.net/fix.php?id=20446&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=20446&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=20446&r=needtrace Try newer version: http://bugs.php.net/fix.php?id=20446&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=20446&r=support Expected behavior: http://bugs.php.net/fix.php?id=20446&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=20446&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=20446&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=20446&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=20446&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=20446&r=dst IIS Stability: http://bugs.php.net/fix.php?id=20446&r=isapi

« previous php.bugs (#24984) next »