Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

PHP file loading or listing operations not working

Tags:

php

windows-10

Software versions

  • OS: Windows 10 Pro Version 1903 Build 18362.175
  • PHP: 7.3.6

The Problem

So I did update to the newest version of Windows 10 and all the loading/listing file operations like

  • glob
  • scandir
  • file_get_contents

do not work anymore, in the case of glob the returning array is empty while scandir is throwing an error:

PHP Warning:  scandir(): Die Datei oder das Verzeichnis ist kein Analysepunkt. (code: 4390) in

file_get_contents is throwing cannot read the file content:

file_get_contents(): failed to open stream: No such file or directory in

The operation did work just fine before upgrading to the new os version and the operation still works on another computer with an older OS (Windows 10 Pro Version 1803 Build 17134.829) and PHP Version (7.3.3).

The problem occurs on another machine as well with the same OS Version. This machine did not update php yet and is using version 7.2.9.

The folders are located in a OneDrive sync folder but the files are set to "keep on disk" to prevent any errors with files not present yet.

Already tried

  • Checking if the problem is present on another machine a well
  • Searching google for solutions for this problem
  • Update the PHP Version it was 7.2.9 before

@edit I did add missing information about the OneDrive

like image 507
Simon Aberle Avatar asked Mar 08 '26 01:03

Simon Aberle


1 Answers

This is a PHP bug #78220 related to onedrive, it was fixed starting from versions 7.3.10 & 7.2.23

http://bugs.php.net/78220

like image 188
Nawwar Elnarsh Avatar answered Mar 09 '26 14:03

Nawwar Elnarsh



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!