php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Doc Bug #55730 Docs do not clearly identify which functions fail on large files on 32bit sys.
Submitted: 2011-09-20 02:14 UTC Modified: 2011-10-08 22:34 UTC
From: poehler at interworx dot com Assigned: frozenfire (profile)
Status: Closed Package: Documentation problem
PHP Version: 5.3.8 OS: Linux
Private report: No CVE-ID: None
View Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
If you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: poehler at interworx dot com
New email:
PHP Version: OS:

 

 [2011-09-20 02:14 UTC] poehler at interworx dot com
Description:
------------
It would be nice if the PHP documentation included notes on the function pages for functions that fail on 32bit servers and files larger than 2GB.

For example, 

is_file
file_exists
realpath (as of php 5.3.0)
filesize
(and a bunch of others)

For example, the filesize function includes this note:

Note: Because PHP's integer type is signed and many platforms use 32bit integers, filesize() may return unexpected results for files which are larger than 2GB. For files between 2GB and 4GB in size this can usually be overcome by using sprintf("%u", filesize($file)). 

It would be very helpful if all the builtin functions that suffer this fate with large files on 32bit systems had similar official notes.




Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2011-10-08 21:53 UTC] frozenfire@php.net
-Status: Open +Status: Assigned -Assigned To: +Assigned To: frozenfire
 [2011-10-08 22:34 UTC] frozenfire@php.net
This bug has been fixed in the documentation's XML sources. Since the
online and downloadable versions of the documentation need some time
to get updated, we would like to ask you to be a bit patient.

Thank you for the report, and for helping us make our documentation better.

I forgot to tag the revision with this bug's ID, so the relevant revision is 
r317928.

Let me know if I missed any functions that are affected by this limitation.
 [2011-10-08 22:34 UTC] frozenfire@php.net
-Status: Assigned +Status: Closed
 
PHP Copyright © 2001-2026 The PHP Group
All rights reserved.
Last updated: Wed Oct 07 21:00:02 2026 UTC