Edit report at http://bugs.php.net/bug.php?id=50150&edit=1
ID: 50150 Comment by: Reported by: balanalin2003 at yahoo dot com Summary: stat() / lstat() does not work on a mounted cifs Status: Bogus Type: Bug Package: Streams related Operating System: ubuntu 9.10 PHP Version: 5.3.0 New Comment: Using SuSE v11.2 with Kernel v2.6.31.5-0.1-default I have the same problem with the SuSE provided PHP v5.3.1 and with clean builds of v5.3.1 and v5.2.13. I can stat from the command line (even through PHP using shell_exec) but all stat() related PHP functions fail. The interesting thing is that stat() works on Linux CIFS shares, but not Windows CIFS shares. Is there some way I can print debug information for each step of the stat() function in the C code to better trouble shoot this? If its a streams problem, can you describe what exactly the problem is? Its not isolated to one machine either. There are several systems in my office that exhibit the same problem. It works properly under SuSE v10.3 and PHP v4.4.0. At the very least, an indication as to what caused the failure would be helpful in the PHP error message. Previous Comments: ------------------------------------------------------------------------ [2009-11-17 12:37:54] [email protected] Most likely OS issue. Not PHP bug -> Bogus. ------------------------------------------------------------------------ [2009-11-17 12:28:06] balanalin2003 at yahoo dot com still getting this error, it may be a problem with my os, or the mount because i have try it on a fedora 7 and filesize worked, wait until you get another report to confirm this, i'm using java until then. Thanks ------------------------------------------------------------------------ [2009-11-16 09:49:54] [email protected] Please try using this snapshot: http://snaps.php.net/php5.3-latest.tar.gz For Windows: http://windows.php.net/snapshots/ And use --disable-phar in your configure line. ------------------------------------------------------------------------ [2009-11-16 06:29:03] balanalin2003 at yahoo dot com r...@alin-laptop:~# uname -r 2.6.31-14-generic Launchpad Janitor wrote on 2009-01-12: #20 This bug was fixed in the package linux - 2.6.28-4.10 so if i have 2.6.31 and it was fixed in 2.6.28, this shouldn't bee the problem thanks for you're response ------------------------------------------------------------------------ [2009-11-12 17:44:53] [email protected] Yes, but stat on command line might be different to stat() function. :) Please check the kernel version compared to where this bug is fixed. (and when you give feedback, use the "Edit Submission" link, NOT the "Add Comment"..) ------------------------------------------------------------------------ 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 http://bugs.php.net/bug.php?id=50150 -- Edit this bug report at http://bugs.php.net/bug.php?id=50150&edit=1
