Edit report at https://bugs.php.net/bug.php?id=78220&edit=1
ID: 78220
Comment by: tbyte at outlook dot com
Reported by: simon dot aberle at mm-bit dot de
Summary: Can't access OneDrive folder
Status: Closed
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
New Comment:
Hi.
Maybe I miss something, but it's not clear if this problem is fixed.
Please let me know.
Thanks for your help!
Previous Comments:
------------------------------------------------------------------------
[2019-08-19 18:00:03] cmb@php.net
Automatic comment on behalf of cmbecker69@gmx.de
Revision: http://git.php.net/?p=php-src.git;a=commit;h=81f52158b42318f17f67468cccc4a8dc03bba942
Log: Fix #78220: Can't access OneDrive folder
------------------------------------------------------------------------
[2019-08-19 12:52:27] cmb@php.net
I have now compared the behavior of Windows 10 1809, and while the
OneDrive folder (on-demand enabled) is reported as reparse point
by fsutil and dir /al, FindFirstFile() doesn't report it as
reparse point, so there are no issues accessing the folder.
------------------------------------------------------------------------
[2019-08-13 16:27:42] cmb@php.net
Related To: Bug #75384
------------------------------------------------------------------------
[2019-08-09 18:15:35] cmb@php.net
When PHP gets information about the OneDrive folder[1],
dataw.dwFileAttributes is 0x431, which indicates a reparse point.
The folder is then opened[2] to get information about the
reparse point[3]. However, that operation fails with the error
ERROR_NOT_A_REPARSE_POINT.
This happens only when On-Demand is enabled; if it is disabled,
the folder is not reported as a reparse point in the first place.
[1] <https://github.com/php/php-src/blob/php-7.3.8/Zend/zend_virtual_cwd.c#L843>
[2] <https://github.com/php/php-src/blob/php-7.3.8/Zend/zend_virtual_cwd.c#L886>
[3] <https://github.com/php/php-src/blob/php-7.3.8/Zend/zend_virtual_cwd.c#L906>
------------------------------------------------------------------------
[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>
------------------------------------------------------------------------
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=78220
--
Edit this bug report at https://bugs.php.net/bug.php?id=78220&edit=1