ID: 41493 Updated by: [EMAIL PROTECTED] Reported By: tayloj1 at uk dot ibm dot com -Status: Open +Status: Verified Bug Type: Documentation problem Operating System: linux PHP Version: Irrelevant New Comment:
Verified behavior on Linux machine. I'm not sure if we should document this, however, because it's not portable at all. Previous Comments: ------------------------------------------------------------------------ [2007-05-24 16:22:07] tayloj1 at uk dot ibm dot com Description: ------------ Linux behaviour of disk_free_space() is not fully documented ref: http://uk.php.net/manual/en/function.disk-free-space.php The description in the PHP manual states: "float disk_free_space ( string $directory ) Given a string containing a directory, this function will return the number of bytes available on the corresponding filesystem or disk partition. " This is true for Windows, where only a directory name is accepted as input. On a Linux system, the function will also accept an existing filename. Please add following text to the description: "On a Linux system, the function will also accept an existing filename, in which case it will return the number of bytes remaining in the corresponding filesystem. " Example: <?php // On Linux : disk_free_space("/phpwork/tmp.txt") ; // returns bytes free in filesystem containing tmp.txt ?> ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=41493&edit=1
