Bug #12321: ftruncate poorly named, suggest alias
| From: | dshadow at zort dot net | Date: | Mon, 23 Jul 2001 17:22:48 +0000 |
| Subject: | Bug #12321: ftruncate poorly named, suggest alias | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-60783@lists.php.net to get a copy of this message | ||
From: dshadow@zort.net
Operating system: Linux
PHP version: 4.0.6
PHP Bug Type: Filesystem function related
Bug description: ftruncate poorly named, suggest alias
The ftruncate function is poorly named, as it can be used to enlarge a
file, not just truncate it. I suggest creating an alias to this function,
"fresize", to make it clear that a file can be arbitrarially resized. I
also suggest that the manual be updated to indicate that ftruncate can
enlarge a file as well: "Changes a file's size", rather than, "truncates a
file to a given length.
--
Edit bug report at: http://bugs.php.net/?id=12321&edit=1