|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
[2017-10-15 18:01 UTC] phpbugs at dougweb dot org
Description: ------------ It would seem that the new "Files on Demand" feature of OneDrive in the Windows fall update causes issues with PHP's ability to open files. In theory according to MS this should be invisible to applications but there's definitely something screwy going on with PHP. (https://support.office.com/en-us/article/Learn-about-OneDrive-Files-On-Demand-0e6860d3-d9f3-4971-b321-7092438fb38e?ui=en-US&rs=en-US&ad=US&fromAR=1). Any attempt to iterate through files in a folder, or even simply do a "require" results in PHP somehow not being able to see them. This applies even if the files are locally available on the PC, the only thing needed to trigger this is to have Files on Demand enabled and to have the source located somewhere within the OneDrive folder. Moving the source code to any other folder makes things work normally. Weirdly, PHP does seem to be able to read the initial file it's asked to execute, it's only secondary files it's unable to load. This may or may not help debugging, but if I install Ubuntu into Windows 10 via the Windows Store, and execute PHP scripts in the OneDrive folder from Linux (so PHP is using the Linux file APIs, with the MS shim converting them to the Windows ones) then that works fine. Test script: --------------- 1) On a recent Windows Insider Build (or wait until RTM in a few days) 2) Enable OneDrive, and the "Files on Demand" feature Then in your OneDrive folder, create 2 files Foo.php <?php require 'Bar.php'; Bar.php <?php echo 'Require worked'; Then run php Foo.php Expected result: ---------------- See "Require worked" output to the screen Actual result: -------------- PHP Warning: require(Bar.php): failed to open stream: No such file or directory in Foo.php on line 2 Warning: require(Bar.php): failed to open stream: No such file or directory in F oo.php on line 2 PHP Fatal error: require(): Failed opening required 'Bar.php' (include_path='.; C:\php\pear') in Foo.php on line 2 Fatal error: require(): Failed opening required 'Bar.php' (include_path='.;C:\ph p\pear') in Foo.php on line 2 PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
|
|||||||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Fri Nov 07 08:00:02 2025 UTC |
I got GetFileInformationByHandleEx: IO_REPARSE_TAG_CLOUD_7(9000701a) FindFirstFileEx: IO_REPARSE_TAG_CLOUD_7(9000701a) Hope that helps?Although trying with a couple of folders within OneDrive, I have had a few different results come up too GetFileInformationByHandleEx: IO_REPARSE_TAG_CLOUD_E(9000e01a) FindFirstFileEx: IO_REPARSE_TAG_CLOUD_E(9000e01a) GetFileInformationByHandleEx: IO_REPARSE_TAG_CLOUD_6(9000601a) FindFirstFileEx: IO_REPARSE_TAG_CLOUD_6(9000601a)