#23540 [NEW]: is_dir (et al) seems confused by Sharity filesystem.
| From: | jp at kole dot com | Date: | Thu, 08 May 2003 06:51:29 +0000 |
| Subject: | #23540 [NEW]: is_dir (et al) seems confused by Sharity filesystem. | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-39279@lists.php.net to get a copy of this message | ||
From: jp at kole dot com
Operating system: RedHat 8.0
PHP version: 5CVS-2003-05-08 (dev)
PHP Bug Type: *Directory/Filesystem functions
Bug description: is_dir (et al) seems confused by Sharity filesystem.
I'm running RedHat 8.0 and Apache 2.0.45.
I'm trying to make Gallery (http://gallery.menalto.com/index.php) 1.3.3
work
with a folder mounted from my Win2000 box to the
Linux box using the Sharity
daemon(http://www.obdev.at/ftp/pub/Products/Sharity/binaries/redhat-rpms/sharity-home-2.8-2.i386.rpm).
This Sharity daemon allows my Win2000 shared folder to
appear as a normal filesystem on my Linux box. As a normal
user I can see the folders and access the files within them.
This code:
# cat -n test.php
1 <?php
2 $name="/JPs_Photos";
3 echo "$name being used...<br>";
4 $dir = opendir($name);
5 while($entry = readdir($dir))
6 {
7 if(is_dir($entry))
8 echo "$entry is a dir<br>";
9 else
10 echo "$entry is NOT a dir<br>";
11 }
12 ?>
Yields this output:
/JPs_Photos being used...
Warning: opendir(/JPs_Photos): failed to open dir: Permission denied in
/home/www/htdocs/gallery/setup/test.php on line 4
Warning: readdir(): supplied argument is not a valid Directory resource in
/home/www/htdocs/gallery/setup/test.php on line 5
Yet, I can see/access this directory while on linux:
# ls -ald /J*
drwxrwxrwx 2 root root 131072 May 8 01:01 /JPs_Photos
# ls -ald /JPs_Photos/index.html
-rw-rw-rw- 1 root root 4621 May 3 10:40
/JPs_Photos/index.html
# od /JPs_Photos/index.html | head -1
0000000 064074 066564 037154 036012 020141 071150 063145 031075
FYI:
# ps -eaf | grep sharity
root 18212 1 0 May05 ? 00:00:06 /opt/sharity/sbin/sharityd
-f /o
# /usr/local/bin/php -v
PHP 4.3.2-RC3-dev (cli) (built: May 8 2003 00:38:06)
Copyright (c) 1997-2003 The PHP Group
Zend Engine v1.3.0, Copyright (c) 1998-2003 Zend Technologies
PHP build line:
./configure --with-mysql --with-apxs2=/var/www2/bin/apxs
Thanks and regards,
jpkole
--
Edit bug report at http://bugs.php.net/?id=23540&edit=1
--
Try a CVS snapshot: http://bugs.php.net/fix.php?id=23540&r=trysnapshot
Fixed in CVS: http://bugs.php.net/fix.php?id=23540&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=23540&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=23540&r=needtrace
Try newer version: http://bugs.php.net/fix.php?id=23540&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=23540&r=support
Expected behavior: http://bugs.php.net/fix.php?id=23540&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=23540&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=23540&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=23540&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=23540&r=php3
Daylight Savings: http://bugs.php.net/fix.php?id=23540&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=23540&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=23540&r=gnused