Edit report at https://bugs.php.net/bug.php?id=63618&edit=1

 ID:                 63618
 User updated by:    roman dot hlynovskiy at gmail dot com
 Reported by:        roman dot hlynovskiy at gmail dot com
 Summary:            5.3.19-1~dotdeb.0 32bit arch
 Status:             Duplicate
 Type:               Bug
 Package:            Filesystem function related
 Operating System:   linux
 PHP Version:        5.3.19
 Block user comment: N
 Private report:     N

 New Comment:

hmm, feature is something missing in a product, however this one is a plain bug.
perl, python, 3-line c program, stat, ls they all return correct size. what is 
wrong with php to return correct filesize?
this is strace cut:
---
stat64("/home/data/bigfile.data", {st_mode=S_IFREG|0644, st_size=2336962885, 
...}) = 0
write(1, "-1958004411\n", 12-1958004411
---
it's clear that from system level correct size is returned. it's a matter of 
using correct types to store and return the value from php perspective


Previous Comments:
------------------------------------------------------------------------
[2012-11-27 06:40:45] [email protected]

LFS is not supported by default. See other feature requests about this issue.

------------------------------------------------------------------------
[2012-11-27 06:16:05] roman dot hlynovskiy at gmail dot com

Description:
------------
filesize returns negative values for big files

Test script:
---------------
$f = '/home/bigfile.data';
$s = filesize($f);
print "$s\n";


Expected result:
----------------
2336962885

Actual result:
--------------
-1958004411


------------------------------------------------------------------------



-- 
Edit this bug report at https://bugs.php.net/bug.php?id=63618&edit=1

Reply via email to