Edit report at https://bugs.php.net/bug.php?id=51266&edit=1

 ID:                 51266
 Comment by:         brandonkirsch at gmail dot com
 Reported by:        dctucker at hotmail dot com
 Summary:            stat failed on cifs-mounted files
 Status:             Feedback
 Type:               Bug
 Package:            Filesystem function related
 Operating System:   Arch Linux (current)
 PHP Version:        5.3.2
 Block user comment: N
 Private report:     N

 New Comment:

We recently upgraded our underlying Linux OS and ran into this same issue.  For 
other Googlers who come across this bug report:  Use the "noserverino" mount 
option as specified by others.

If you want to know more about this issue, see: 
http://linux.die.net/man/8/mount.cifs

The important thing to know is that CIFS servers will frequently return inode 
integer values that are greater than 31^2. If you read the PHP documentation 
for 
these filesystem functions, you will find a disclaimer that these large 
unsigned 
integer values will break in PHP.

Disable the possibility of really big inode numbers from your CIFS mounts by 
using the "noserverino" mount option.


Previous Comments:
------------------------------------------------------------------------
[2010-07-30 15:20:05] beststom14 at hotmail dot com

Same issue. Windows Seven 32 bit. When programming a file manager i found that 
some dirs were being listed as files. For some reason when i create a new dir 
it gets listed correctly but when i COPY it from somewhere it is listed as a 
file.

------------------------------------------------------------------------
[2010-06-04 08:32:44] m...@php.net

Cannot reproduce, still works fine here.

When you edit your report, please re-open it, too.

------------------------------------------------------------------------
[2010-06-03 20:37:31] dctucker at hotmail dot com

The mount command lacks noserverino:

$ tail -n 1 /etc/fstab
//theword/d  /mnt/theword  cifs    
nocase,file_mode=0664,dir_mode=0775,username=Administrator%,uid=nobody 0 0

------------------------------------------------------------------------
[2010-05-21 11:23:44] m...@php.net

How does the mount command look like, so that it fails?

------------------------------------------------------------------------
[2010-05-20 21:54:15] dctucker at hotmail dot com

Mike,

Using the 'noserverino' workaround does mitigate the problem, but it does not 
address the underlying issue.

------------------------------------------------------------------------


The remainder of the comments for this report are too long. To view
the rest of the comments, please view the bug report online at

    https://bugs.php.net/bug.php?id=51266


-- 
Edit this bug report at https://bugs.php.net/bug.php?id=51266&edit=1

Reply via email to