Bug #75384 [Com]: PHP seems incompatible with OneDrive files on demand

From: Date: Tue, 07 Nov 2017 21:14:46 +0000
Subject: Bug #75384 [Com]: PHP seems incompatible with OneDrive files on demand
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-212504@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=75384&edit=1

 ID:                 75384
 Comment by:         valentino dot delapa at tiscali dot it
 Reported by:        phpbugs at dougweb dot org
 Summary:            PHP seems incompatible with OneDrive files on demand
 Status:             Feedback
 Type:               Bug
 Package:            *Directory/Filesystem functions
 Operating System:   Windows 10
 PHP Version:        7.1.10
 Assigned To:        ab
 Block user comment: N
 Private report:     N

 New Comment:

On my computer the command execution result is this:

GetFileInformationByHandleEx: CreateFile failed
FindFirstFileEx: IO_REPARSE_TAG_CLOUD_3(9000301a)


Previous Comments:
------------------------------------------------------------------------
[2017-11-07 18:36:38] ab@php.net

I've uploaded a test program here http://windows.php.net/downloads/snaps/ostc/75384/

Please download it and invoke on console like this

read_reparse_tag C:\Users\<my user>\OneDrive\

Then post the output.

Thanks.

------------------------------------------------------------------------
[2017-11-02 17:41:44] simbiat at bk dot ru

BTW, the same thing affects MySQL: Fatal error: Can't open and lock privilege tables: Table
storage engine for 'user' doesn't have this optionFor more information, see Help and
Support Center at http://www.mysql.com.

------------------------------------------------------------------------
[2017-11-02 17:35:10] simbiat at bk dot ru

I figured out why it was not working for me when I moved htdocs. It was moved by Windows in a way,
that Windows treated it as it was still in OneDrive. I ran

dir /AL c:\Users\username\

which is expected to show all "links" and it listed htdocs as "DIR". I moved it
away, created a directory manually and reran the command: htdocs was not there. In both cases
OneDrive was there as "DIR".
Note that /AL flag should NOT list "DIR". Meaning, that there is something different with
those OneDrive directories (obviously). I dunno how to see what exactly.

------------------------------------------------------------------------
[2017-11-02 04:21:04] simbiat at bk dot ru

I think this is not OneDrive related. I moved htdocs to 1 directory above OneDrive (that is
C:\users\username\htdocs) but still get the same error. When I move it to C:\htdocs - it works fine.
I think there is something wrong with permissions, that PHP gets from Apache, even though, Apache
can access the files normally. Tried setting php.exe to run under admin (Compatibility mode), but
that did not help, either.

Warning like
PHP Warning:  Unknown: failed to open stream: Operation not permitted in Unknown on line 0

Only support that PHP can't access the file. And the funny thing is: if I look at the folders
in Total Commander it shows them as... Links. And SymLink following is allowed in configuration
file.

------------------------------------------------------------------------
[2017-10-22 07:16:09] info at sillevl dot be

I have added a comment on github on the code that might be the source of the problem: https://github.com/php/php-src/commit/065edced71c7f15f32fc2fb483a9048328b8108e#commitcomment-25110205

------------------------------------------------------------------------


The remainder of the comments for this report are too long. To view
the rest of the comments, please view the bug report online at

    https://bugs.php.net/bug.php?id=75384


--
Edit this bug report at https://bugs.php.net/bug.php?id=75384&edit=1


Thread (25 messages)

« previous php.bugs (#212504) next »