Bug #12321 Updated: ftruncate poorly named, suggest alias

From: Date: Mon, 23 Jul 2001 17:51:00 +0000
Subject: Bug #12321 Updated: ftruncate poorly named, suggest alias
References: 1  Groups: php.dev 
Request: Send a blank email to php-dev+get-60788@lists.php.net to get a copy of this message
ID: 12321 Updated by: hholzgra Reported By: dshadow@zort.net Status: Open Bug Type: Feature/Change Request Operating System: Linux PHP Version: 4.0.6 New Comment: it's just the name of the C function/system call doing the same job Previous Comments: ------------------------------------------------------------------------ [2001-07-23 13:34:22] andy@php.net reclassified ------------------------------------------------------------------------ [2001-07-23 13:22:48] dshadow@zort.net 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 this bug report at http://bugs.php.net/?id=12321&edit=1

« previous php.dev (#60788) next »