Hi,
I have a very strange behavior with is_file() or file_exists() function.
<?php $nfsFile = '/mnt/nfsdir/file.txt'; var_dump(is_file($nfsFile)); ?>
this code returns FALSE all the time, but:
$#php -r 'var_dump(is_file('/mnt/nfsdir/file.txt'));'
returns TRUE, which is correct.
I'm running Debian Squeeze, Apache 2.2.15 and PHP 5.3.2-1.
I'm not in safe mode, the directory /mnt/nfsdir/ and all files are in 777, www-data user can ls /mnt/nfsdir/ so I'm a bite out of idea now.
Any suggestion are welcome!