Bug #73543 [NEW]: Network drive file: is_readable() == false but file can be read

From: Date: Wed, 16 Nov 2016 14:42:50 +0000
Subject: Bug #73543 [NEW]: Network drive file: is_readable() == false but file can be read
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-205409@lists.php.net to get a copy of this message
From: hsh at autowise dot dk Operating system: Windows 10 PHP version: 7.0.13 Package: Filesystem function related Bug Type: Bug Bug description:Network drive file: is_readable() == false but file can be read Description: ------------ The is_readable() functions seems to interpret network drive ACLs incorrectly such that readable files are interpreted as unreadable. This problem seems to be related to the bug: #53214 but in my case the bug reveals itself on a real Samba server running Samba v4.3.11, and not via VirtualBox. The Samba server is running as domain controller using extended ACLs and the: idmap_ldb:use rfc2307 = yes flag is enabled in smb4.conf Test script: --------------- Samba share: S:\ S:\> echo "Hello World" > test.txt S:\> php -r "echo is_readable('test.txt')?'true':'false';" false S:> php -r "echo file_get_contents('test.txt');" "Hello World" -- Edit bug report at https://bugs.php.net/bug.php?id=73543&edit=1 -- Try a snapshot (PHP 5.4): https://bugs.php.net/fix.php?id=73543&r=trysnapshot54 Try a snapshot (PHP 5.5): https://bugs.php.net/fix.php?id=73543&r=trysnapshot55 Try a snapshot (trunk): https://bugs.php.net/fix.php?id=73543&r=trysnapshottrunk Fixed in SVN: https://bugs.php.net/fix.php?id=73543&r=fixed Fixed in release: https://bugs.php.net/fix.php?id=73543&r=alreadyfixed Need backtrace: https://bugs.php.net/fix.php?id=73543&r=needtrace Need Reproduce Script: https://bugs.php.net/fix.php?id=73543&r=needscript Try newer version: https://bugs.php.net/fix.php?id=73543&r=oldversion Not developer issue: https://bugs.php.net/fix.php?id=73543&r=support Expected behavior: https://bugs.php.net/fix.php?id=73543&r=notwrong Not enough info: https://bugs.php.net/fix.php?id=73543&r=notenoughinfo Submitted twice: https://bugs.php.net/fix.php?id=73543&r=submittedtwice register_globals: https://bugs.php.net/fix.php?id=73543&r=globals PHP 4 support discontinued: https://bugs.php.net/fix.php?id=73543&r=php4 Daylight Savings: https://bugs.php.net/fix.php?id=73543&r=dst IIS Stability: https://bugs.php.net/fix.php?id=73543&r=isapi Install GNU Sed: https://bugs.php.net/fix.php?id=73543&r=gnused Floating point limitations: https://bugs.php.net/fix.php?id=73543&r=float No Zend Extensions: https://bugs.php.net/fix.php?id=73543&r=nozend MySQL Configuration Error: https://bugs.php.net/fix.php?id=73543&r=mysqlcfg

« previous php.bugs (#205409) next »