php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #31969 disk_free_space() sometimes return Zero in Samba mounted file systems
Submitted: 2005-02-14 12:30 UTC Modified: 2005-02-22 15:30 UTC
From: lrosa at venus dot it Assigned:
Status: Not a bug Package: Filesystem function related
PHP Version: 5.0.3 OS: Linux Fedora Core 3
Private report: No CVE-ID: None
View Add Comment Developer Edit
Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know!
Just going to say 'Me too!'? Don't clutter the database with that please !
Your email address:
MUST BE VALID
Solve the problem:
25 + 40 = ?
Subscribe to this entry?

 
 [2005-02-14 12:30 UTC] lrosa at venus dot it
Description:
------------
I have a Linux box with 20 file system mounted via Samba.
Sometimes, randomly, calling disk_free_space() on some file systems it retirns zero instead the real value. Reissuing the same command few minutes later returns the right value. Sometimes happens that the Samba remote filesystem connection is slow, so this may happen.

It would be nice if disk_free_space() would return a negative value if it is unable to get the correct value, otherwise it would be impossible to distinguish between a "real" Zero Bytes Free situation and a Temporary Timeout Problem situation.


Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2005-02-22 15:30 UTC] iliaa@php.net
Sorry, but your problem does not imply a bug in PHP itself.  For a
list of more appropriate places to ask for help using PHP, please
visit http://www.php.net/support.php as this bug system is not the
appropriate forum for asking support questions. 

Even if you think it is not a bug, we often know better than you,
please consult the support channels first before even considering
to reopen this report.

Thank you for your interest in PHP.

The output returned is the same as the one returned by the underlying C library function used to retrieve this information.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Mon Apr 29 10:01:30 2024 UTC