|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Request #24411 2 Gb filesize limit
Submitted: 2003-06-30 11:12 UTC Modified: 2005-08-11 19:50 UTC
From: domisse at iap dot fr Assigned:
Status: Not a bug Package: Feature/Change Request
PHP Version: 4.3.2 OS: Linux
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
Block user comment
Status: Assign to:
Bug Type:
From: domisse at iap dot fr
New email:
PHP Version: OS:


 [2003-06-30 11:12 UTC] domisse at iap dot fr
Is there any hope to see a large file support in php ?


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2003-06-30 11:59 UTC]
Most likely not soon... internally PHP uses a signed integer for string lengths and other things. What exactly do you want to do with this?
 [2003-06-30 12:04 UTC] domisse at iap dot fr
I have to manage astronomical images which are rather big !
I would like to get filesize to display basic data on them via
a browser.
 [2003-06-30 12:06 UTC]
If they are smaller than 4GB you can do this:

printf("%u", filesize("filename")); Everything larger would be a problem, as the return value from filesize is an integer.
 [2003-06-30 14:14 UTC] domisse at iap dot fr
thanks :)
But most of my files are bigger....will wait for
the next release ;) Thanks
 [2003-07-01 11:55 UTC] brian dot foddy at nwa dot com
You might try using standard shell commands
(ls -la) and capturing the values into either 
strings or double floats.  You could probably
work something out that would give you most of
what you need.

A hack... most definately, but I've had
good luck dealing with 64bit ints as doubles
without loosing too much precision.
 [2003-07-02 08:04 UTC] domisse at iap dot fr
Thanks your help :)
Will check the Changelog file in the next release.
 [2003-07-02 08:22 UTC]
Don't expect this to be added in the near future... it will probably wait until we all use 64bit CPUs ;)
 [2003-07-02 08:27 UTC] domisse at iap dot fr
Do you mean you are still using those old 32bits machine ? ;)
 [2003-07-02 08:38 UTC]
Yup :) Feel free to sponsor me with a 64bit machine :)
 [2003-07-02 09:09 UTC] domisse at iap dot fr
Need to get one first to install the next php release ! ;)
 [2005-08-11 19:50 UTC]
Problem tracked in #27792.
PHP Copyright © 2001-2022 The PHP Group
All rights reserved.
Last updated: Tue May 17 13:05:45 2022 UTC