|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Doc Bug #67443 disk_total_space
Submitted: 2014-06-14 20:18 UTC Modified: 2014-06-15 03:22 UTC
From: cybermerlin at ya dot ru Assigned:
Status: Not a bug Package: Directory function related
PHP Version: 5.4.29 OS: freebsd 10
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
Block user comment
Status: Assign to:
Bug Type:
From: cybermerlin at ya dot ru
New email:
PHP Version: OS:


 [2014-06-14 20:18 UTC] cybermerlin at ya dot ru
From manual page:
disk_total_space('/var/www/') // 38895.4Mb
disk_total_space('/var/www/') // 38895.4Mb
disk_total_space('/var/www/') // 38895.4Mb

Test script:
echo disk_total_space('/var/www/'); // 38895.4Mb
echo disk_total_space('/var/www/'); // 38895.4Mb
echo disk_total_space('/var/www/'); // 38895.4Mb


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2014-06-15 03:22 UTC]
-Status: Open +Status: Not a bug
 [2014-06-15 03:22 UTC]
Thank you for taking the time to write to us, but this is not
a bug. Please double-check the documentation available at and the instructions on how to report
a bug at

 [2014-06-15 05:59 UTC]
Basically, this function returns total space on DISK, not in directory. So all of your examples refers to /var/ actually, if /var/ is partition. That's why results are the same.
PHP Copyright © 2001-2021 The PHP Group
All rights reserved.
Last updated: Fri Jan 22 13:01:24 2021 UTC