Bug #78220 [Asn->Ver]: Can't save to file system outside of project folder

From: Date: Fri, 09 Aug 2019 15:45:19 +0000
Subject: Bug #78220 [Asn->Ver]: Can't save to file system outside of project folder
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-222163@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=78220&edit=1 ID: 78220 Updated by: cmb@php.net Reported by: simon dot aberle at mm-bit dot de Summary: Can't save to file system outside of project folder -Status: Assigned +Status: Verified Type: Bug Package: *Directory/Filesystem functions Operating System: Windows 10 Pro Version 1903 PHP Version: 7.3.6 Assigned To: cmb Block user comment: N Private report: N Previous Comments: ------------------------------------------------------------------------ [2019-06-28 11:05:42] cmb@php.net Further details on StackOverflow: <https://stackoverflow.com/questions/56791646/php-file-loading-or-listing-operations-not-working> ------------------------------------------------------------------------ [2019-06-28 07:35:56] simon dot aberle at mm-bit dot de After some tests I can provide the following additional information If I run the script with the Windows subsystem for Linux (Ubuntu) the file listing and loading is working just fine. This result is not depending on the OneDrive state (Running/Stopped) Disabling OneDrive or stopping the sync will not fix the problem with the default Windows command line. ------------------------------------------------------------------------ [2019-06-28 06:08:05] simon dot aberle at mm-bit dot de You are totally right the folders I did try to load the data from are hosted via OneDrive but saved on my local HDD. The only errors I get are the default ones if a file is not present: PHP Warning: scandir(): Die Datei oder das Verzeichnis ist kein Analysepunkt. (code: 4390) in file_get_contents(): failed to open stream: No such file or directory in I can try to create a process monitor log to track down the problem if you tell me how. ------------------------------------------------------------------------ [2019-06-27 16:45:01] requinix@php.net Do you have any specific information besides that it doesn't work? Errors? Process Monitor log? And are these files hosted on OneDrive? ------------------------------------------------------------------------ [2019-06-27 12:34:24] simon dot aberle at mm-bit dot de Description: ------------ If I try to see a folder content via glob or scandir the returning array is empty all the time. The problem also occurs if I try to load a file via fopen or file_get_contents. This problem occurs since I did update my OS with the May 2019 update which seems to broke this functionality. Seems like Microsoft did change something on their access rights. The same problems appear on the computer of one of my colleague after updating his os as well. Running the code on a computer where the newest patch is not installed yet everything just work file. ------------------------------------------------------------------------ -- Edit this bug report at https://bugs.php.net/bug.php?id=78220&edit=1

« previous php.bugs (#222163) next »