Kernel 2.6.31 broke my PHP script
Strange things happened when is_dir() suddenly returned false. The directory is there, was always there and file_exists() confirms that. Last thing i've changed on that box was the Kernel update on my Slackware box to 2.6.31 so restarting with 2.6.27 and problem is gone. Very strange.
Okay digging a bit deeper, that directory is mounted via cifs (samba share) and when looking at stat output or ls -lai the Inode number is huge. Really huge. That was caused by a patch that enables cifs serverino option per default but breaks all applications that are not compiled with large file support.
The workaround for this is to pass the option "noserverino" to mount.cifs.
Programming : Read more : comments (2) : 25.09.2009 14:00
Comments
This saved my day ... Thank you!
I had the error with the php realpath function, but a google search on realpath cifs produced no relevant results. By chance I saw in a different script a similar error with is_dir, changed my google search from realpath to is_dir - and Bingo.
So just in case somebody runs into this:
php realpath has similar errors with cifs volumes
Thanks a lot, you saved my day! The option "noserverino" solves the problem.
is_dir and realpath didn't worked without it :-)