Bug #51404 [Opn->Bgs]: is_dir() returns false on cifs mounted share
| From: | tony2001@php.net | Date: | Tue, 08 Jun 2010 12:33:22 +0000 |
| Subject: | Bug #51404 [Opn->Bgs]: is_dir() returns false on cifs mounted share | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-151198@lists.php.net to get a copy of this message | ||
Edit report at http://bugs.php.net/bug.php?id=51404&edit=1
ID: 51404
Updated by: tony2001@php.net
Reported by: neversaynever at tut dot by
Summary: is_dir() returns false on cifs mounted share
-Status: Open
+Status: Bogus
Type: Bug
Package: Directory function related
Operating System: Linux
PHP Version: Irrelevant
New Comment:
I'm sure PHP doesn't affect any of system functions, including stat().
You get what your stat() returns -> not PHP problem.
Previous Comments:
------------------------------------------------------------------------
[2010-03-26 20:34:07] neversaynever at tut dot by
Description:
------------
I upgraded my kernel to 2.6.31 (stable) and has php-5.2.12 (stable),
but
php function is_dir() returns false for folder on my cifs mounted
share.
strace php -r 'var_dump(is_dir("/path_to_mounted_folder/"));'
...
stat64("/path_to_mounted_folder/", {st_mode=S_IFDIR|0755, st_size=32768,
...}) = 0
gettimeofday({1269602972, 30466}, NULL) = 0
write(1, "bool(false)\n", 12bool(false)
) = 12
...
Test script:
---------------
php -r 'var_dump(is_dir("/path_to_mounted_folder/"));'
Expected result:
----------------
bool(true)
Actual result:
--------------
bool(false)
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/bug.php?id=51404&edit=1