From: tayloj1 at uk dot ibm dot com Operating system: linux PHP version: Irrelevant PHP Bug Type: Documentation problem Bug description: Linux behaviour of function disk_free_space()
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 bug report at http://bugs.php.net/?id=41493&edit=1 -- Try a CVS snapshot (PHP 4.4): http://bugs.php.net/fix.php?id=41493&r=trysnapshot44 Try a CVS snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=41493&r=trysnapshot52 Try a CVS snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=41493&r=trysnapshot60 Fixed in CVS: http://bugs.php.net/fix.php?id=41493&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=41493&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=41493&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=41493&r=needscript Try newer version: http://bugs.php.net/fix.php?id=41493&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=41493&r=support Expected behavior: http://bugs.php.net/fix.php?id=41493&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=41493&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=41493&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=41493&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=41493&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=41493&r=dst IIS Stability: http://bugs.php.net/fix.php?id=41493&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=41493&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=41493&r=float No Zend Extensions: http://bugs.php.net/fix.php?id=41493&r=nozend MySQL Configuration Error: http://bugs.php.net/fix.php?id=41493&r=mysqlcfg
