note 124785 added to function.fileperms

From: Date: Mon, 02 Mar 2020 19:53:44 +0000
Subject: note 124785 added to function.fileperms
Groups: php.notes 
Request: Send a blank email to php-notes+get-214273@lists.php.net to get a copy of this message
Windows has a very different file permission model to Unix and integrates them only minimally. Here's how Windows calculates the bitmask... u+w/g+w/o+w is set based on whether the file has the read only flag. u+r/g+w/o+w is always set. u+x/g+x/o+x is set based on whether $filename is an inherently executable file (e.g. bat) or a directory. Windows isn't integrating its ACLs at all. Here's the source of all this: https://docs.microsoft.com/en-us/cpp/c-runtime-library/reference/stat-functions?view=vs-2019 (but it doesn't provide many details) ---- Server IP: 45.112.84.4 Probable Submitter: 38.142.137.34 (proxied: 65.26.220.245) ---- Manual Page -- http://php.net/manual/en/function.fileperms.php Edit -- https://master.php.net/note/edit/124785 Del: integrated -- https://master.php.net/note/delete/124785/integrated Del: useless -- https://master.php.net/note/delete/124785/useless Del: bad code -- https://master.php.net/note/delete/124785/bad+code Del: spam -- https://master.php.net/note/delete/124785/spam Del: non-english -- https://master.php.net/note/delete/124785/non-english Del: in docs -- https://master.php.net/note/delete/124785/in+docs Del: other reasons-- https://master.php.net/note/delete/124785 Reject -- https://master.php.net/note/reject/124785 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#214273) next »