ID: 20446
Updated by: [EMAIL PROTECTED]
Reported By: [EMAIL PROTECTED]
-Status: Open
+Status: Bogus
Bug Type: *Directory/Filesystem functions
Operating System: NT4 - SP 6
PHP Version: 4.2.3
New Comment:
This is not really a bug, PHP simply doesn't support unsigned integers,
and a signed integer on Windows/i386 only goes to 2^31 - 1 (about
2GB).
Ddderick
Previous Comments:
------------------------------------------------------------------------
[2002-11-15 09:23:22] [EMAIL PROTECTED]
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 this bug report at http://bugs.php.net/?id=20446&edit=1