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

Reply via email to