#51133 [Opn->Bgs]: Allow float as parameter for ftruncate
| From: | aharvey@php.net | Date: | Wed, 24 Feb 2010 15:12:58 +0000 |
| Subject: | #51133 [Opn->Bgs]: Allow float as parameter for ftruncate | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-148028@lists.php.net to get a copy of this message | ||
ID: 51133
Updated by: aharvey@php.net
Reported By: sylvain at abstraction dot fr
-Status: Open
+Status: Bogus
Bug Type: Feature/Change Request
Operating System: linux
PHP Version: 5.2.12
New Comment:
This is effectively a bug requesting large file support on 32-bit
platforms, which makes it a duplicate of the previously closed bug
#38758, bug #40726, bug #43865, and probably others besides. The open
bug that deals with this is bug #27792, which includes a patch to
implement LFS.
Simply changing the function to take a float wouldn't solve the
problem, since the underlying file I/O APIs all use 32-bit integers as
well. This requires work both at the ext/standard and stream level.
It's also worth noting that this already works just fine on 64-bit
platforms.
Previous Comments:
------------------------------------------------------------------------
[2010-02-24 14:56:32] sylvain at abstraction dot fr
It's the same thing for the fseek function for the offset argument.
------------------------------------------------------------------------
[2010-02-24 12:36:24] sylvain at abstraction dot fr
Description:
------------
ftruncate function takes an int as size parameter which is problematic
when the wanted size is up to 2GB.
Could it be made float instead ?
Regards.
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=51133&edit=1