From:             m at thedigitalmachine dot com
Operating system: linux (gentoo)
PHP version:      5.3.13
Package:          Directory function related
Bug Type:         Bug
Bug description:is_readable() does not seem to tolerate crossing partitions 
inside a sambashare

Description:
------------
Calls to PHP's is_readable() function are returning false on a directory
that is readable from the command prompt. I have changed permissions to
most-permissible and still no luck.

Any directory under the samba share that is not on the physical primary
partition seems to fail. 

Here are the permissions as provided in the shell:

ls -lad /remote/samba_share
drwxrwxr-x 13 me users 0 May 29 15:49 /remote/samba_share

ls -la /remote/samba_share
drwxr-xr-x  4 me users 0 May  8 14:19 /remote/samba_share/local_dir
drwxr-xr-x 16 me users 0 May 14 19:49 /remote/samba_share/second_drive
drwxrwxrwx 12 me users 0 May 30 09:42 /remote/samba_share/ext_raid

NOTE: I started this as a question on stackoverflow, because of the number
of other possible causes, but led to this bug report.

http://stackoverflow.com/questions/10818770/php-is-readable-fails-on-readable-samba-directory



Test script:
---------------
if (is_readable('/remote/samba_share'              )){ echo "share ok\n"; 
} else { echo "share BAD\n";  }
if (is_readable('/remote/samba_share/local_dir'    )){ echo "local ok\n"; 
} else { echo "local BAD\n";  }
if (is_readable('/remote/samba_share/second_drive' )){ echo "second ok\n";
} else { echo "second BAD\n"; }
if (is_readable('/remote/samba_share/ext_raid'     )){ echo "raid ok\n";  
} else { echo "raid BAD\n";   }

Expected result:
----------------
share ok
local ok
second ok
raid ok

Actual result:
--------------
share ok
local ok
second BAD
raid BAD

-- 
Edit bug report at https://bugs.php.net/bug.php?id=62199&edit=1
-- 
Try a snapshot (PHP 5.4):            
https://bugs.php.net/fix.php?id=62199&r=trysnapshot54
Try a snapshot (PHP 5.3):            
https://bugs.php.net/fix.php?id=62199&r=trysnapshot53
Try a snapshot (trunk):              
https://bugs.php.net/fix.php?id=62199&r=trysnapshottrunk
Fixed in SVN:                        
https://bugs.php.net/fix.php?id=62199&r=fixed
Fixed in SVN and need be documented: 
https://bugs.php.net/fix.php?id=62199&r=needdocs
Fixed in release:                    
https://bugs.php.net/fix.php?id=62199&r=alreadyfixed
Need backtrace:                      
https://bugs.php.net/fix.php?id=62199&r=needtrace
Need Reproduce Script:               
https://bugs.php.net/fix.php?id=62199&r=needscript
Try newer version:                   
https://bugs.php.net/fix.php?id=62199&r=oldversion
Not developer issue:                 
https://bugs.php.net/fix.php?id=62199&r=support
Expected behavior:                   
https://bugs.php.net/fix.php?id=62199&r=notwrong
Not enough info:                     
https://bugs.php.net/fix.php?id=62199&r=notenoughinfo
Submitted twice:                     
https://bugs.php.net/fix.php?id=62199&r=submittedtwice
register_globals:                    
https://bugs.php.net/fix.php?id=62199&r=globals
PHP 4 support discontinued:          
https://bugs.php.net/fix.php?id=62199&r=php4
Daylight Savings:                    https://bugs.php.net/fix.php?id=62199&r=dst
IIS Stability:                       
https://bugs.php.net/fix.php?id=62199&r=isapi
Install GNU Sed:                     
https://bugs.php.net/fix.php?id=62199&r=gnused
Floating point limitations:          
https://bugs.php.net/fix.php?id=62199&r=float
No Zend Extensions:                  
https://bugs.php.net/fix.php?id=62199&r=nozend
MySQL Configuration Error:           
https://bugs.php.net/fix.php?id=62199&r=mysqlcfg

Reply via email to