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
 [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: Fri Mar 29 00:01:28 2024 UTC