Doc #55730 [Opn->Asn]: Docs do not clearly identify which functions fail on large files on 32bit sys.
| From: | frozenfire@php.net | Date: | Sat, 08 Oct 2011 21:53:58 +0000 |
| Subject: | Doc #55730 [Opn->Asn]: 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-7307@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: Open
+Status: Assigned
Type: Documentation Problem
Package: Documentation problem
Operating System: Linux
PHP Version: 5.3.8
-Assigned To:
+Assigned To: frozenfire
Block user comment: N
Private report: N
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