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

 ID:               51266
 Comment by:       mail at daniel-berlin dot de
 Reported by:      dctucker at hotmail dot com
 Summary:          stat failed on cifs-mounted files
 Status:           Open
 Type:             Bug
 Package:          Filesystem function related
 Operating System: Arch Linux (current)
 PHP Version:      5.3.2

 New Comment:

Sorry, I meant 5.2.4 ...


Previous Comments:
------------------------------------------------------------------------
[2010-03-23 19:20:19] mail at daniel-berlin dot de

For me, it doesn't even work with PHP 5.3.2

------------------------------------------------------------------------
[2010-03-10 21:13:33] dctucker at hotmail dot com

I would also like to add that this bug did not exist in versions prior
to php-5.2.5

------------------------------------------------------------------------
[2010-03-10 21:09:04] dctucker at hotmail dot com

Works fine under shell with the same user as PHP runs in Apache:



$ sudo -u nobody stat /mnt/share/Dir/file.wav

  File: `/mnt/share/Dir/file.wav'

  Size: 159432852       Blocks: 311400     IO Block: 16384  regular
file

Device: fh/15d  Inode: 281474976737089  Links: 1

Access: (0664/-rw-rw-r--)  Uid: (   99/  nobody)   Gid: (    0/   
root)

Access: 2010-03-08 09:01:09.987840000 -0500

Modify: 2010-03-06 00:00:00.000000000 -0500

Change: 2010-03-05 07:31:34.933320700 -0500

------------------------------------------------------------------------
[2010-03-10 21:06:22] dctucker at hotmail dot com

Description:
------------
This bug affects filemtime, filesize, and other stat-related functions.
When attempting to get file information from a file hosted on a mounted
CIFS share (e.g. /mnt/share/Dir/file.wav), it fails. This is
specifically a PHP problem because I am able to work around this problem
by executing the stat command from a shell or using `back-tick
operator`.

Test script:
---------------
<?php



$fm = filemtime('/mnt/share/Dir/file.wav');

echo $fm;



?>

Expected result:
----------------
18293749557

Actual result:
--------------
Warning: filemtime(): stat failed for /mnt/share/Dir/file.wav in - on
line 3


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



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

Reply via email to