#42741 [Opn]: ftruncate extended version
| From: | beotiger at mail dot ru | Date: | Sun, 23 Sep 2007 15:26:09 +0000 |
| Subject: | #42741 [Opn]: ftruncate extended version | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-117786@lists.php.net to get a copy of this message | ||
ID: 42741
User updated by: beotiger at mail dot ru
-Summary: ftrucate extended version
Reported By: beotiger at mail dot ru
Status: Open
Bug Type: Feature/Change Request
Operating System: any
PHP Version: 5.2.4
New Comment:
There should be an extending version of ftruncate which allows you to
truncate not the end of file but the beginning of it (to a certain
size)
- so if you request filesize more than the current size, the zeros
would
be added at the beginning of file, not to the end (on demand, of
course).
It'd be useful for any logs, if their size shouldn't be more than the
given number.
Previous Comments:
------------------------------------------------------------------------
[2007-09-23 15:21:42] beotiger at mail dot ru
Description:
------------
There should be an extending version of ftruncate which allows you to
truncate not the end of file but the beginning of it (to a certain size)
- so if you request filesize more than the current size, the zeros would
be added at the beginning of file, not to the end (on demand, of
course).
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=42741&edit=1