Edit report at http://bugs.php.net/bug.php?id=50150&edit=1
ID: 50150 Updated by: [email protected] 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: This doesn't sound like a PHP problem at all. My best guess is that you have a 32/64-bit mismatch here. And PHP doesn't currently support 64-bit inodes. There are some patches floating around that will eventually be folded in to address this though. See bug #48886 Previous Comments: ------------------------------------------------------------------------ [2010-03-04 18:54:36] mpiazza at benefitresource dot com I would like to add that the command line stat returns an Inode value of 281474976718220 on the 'broken' system and 55187670 on the 'working' system. This is suspect to me. Shouldn't it be the same across the board? ------------------------------------------------------------------------ [2010-03-04 18:49:08] mpiazza at benefitresource dot com 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. ------------------------------------------------------------------------ [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. ------------------------------------------------------------------------ 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
