Doc #55730 [Asn->Csd]: Docs do not clearly identify which functions fail on large files on 32bit sys.
| From: | frozenfire@php.net | Date: | Sat, 08 Oct 2011 22:34:27 +0000 |
| Subject: | Doc #55730 [Asn->Csd]: Docs do not clearly identify which functions fail on large files on 32bit sys. | ||
| References: | 1 | Groups: | php.doc.bugs |
| Request: | Send a blank email to doc-bugs+get-7308@lists.php.net to get a copy of this message | ||
Edit report at https://bugs.php.net/bug.php?id=55730&edit=1
ID: 55730
Updated by: frozenfire@php.net
Reported by: poehler at interworx dot com
Summary: Docs do not clearly identify which functions fail on
large files on 32bit sys.
-Status: Assigned
+Status: Closed
Type: Documentation Problem
Package: Documentation problem
Operating System: Linux
PHP Version: 5.3.8
Assigned To: frozenfire
Block user comment: N
Private report: N
New Comment:
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.
Previous Comments:
------------------------------------------------------------------------
[2011-09-20 02:14:58] 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.
------------------------------------------------------------------------
--
Edit this bug report at https://bugs.php.net/bug.php?id=55730&edit=1