php.net |  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
 [2003-06-30 11:12 UTC] domisse at iap dot fr
Description:
------------
Is there any hope to see a large file support in php ?



Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2003-06-30 11:59 UTC] derick@php.net
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] derick@php.net
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] derick@php.net
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] derick@php.net
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] nlopess@php.net
Problem tracked in #27792.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu Mar 28 17:01:29 2024 UTC