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

From: Date: Mon, 21 Nov 2016 11:38:43 +0000
Subject: Bug #73543 [Opn]: Network drive file: is_readable() == false but file can be read
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-205509@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=73543&edit=1 ID: 73543 Updated by: ab@php.net Reported by: hsh at autowise dot dk Summary: Network drive file: is_readable() == false but file can be read Status: Open Type: Bug Package: Filesystem function related Operating System: Windows 10 PHP Version: 7.0.13 Block user comment: N Private report: N New Comment: Thanks for the report. I was hunting this bug earlier, however it didn't come to a distinct solution. It still looks to me, this ticket is a duplicate of bug #68926, so still either Samba or a config issue. Probably hard to say, without having some debug session, and creating a reproduce environment is probably the most tricky part. Thanks. Previous Comments: ------------------------------------------------------------------------ [2016-11-16 14:59:54] hsh at autowise dot dk Yes, except that I'm not using the Windows Offline Files feature. It could easily be a manifestation of the same bug though if both bugs are Windows ACL-related. ------------------------------------------------------------------------ [2016-11-16 14:52:25] cmb@php.net That looks like a duplicate of bug #69834. ------------------------------------------------------------------------ [2016-11-16 14:42:46] hsh at autowise dot dk 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 this bug report at https://bugs.php.net/bug.php?id=73543&edit=1

« previous php.bugs (#205509) next »