php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #78784 Unable to interact with files inside a VFS for Git repository
Submitted: 2019-11-05 22:09 UTC Modified: 2020-04-27 07:34 UTC
From: colinb969 at gmail dot com Assigned: cmb (profile)
Status: Closed Package: *Directory/Filesystem functions
PHP Version: 7.3.11 OS: Windows 10
Private report: No CVE-ID: None
 [2019-11-05 22:09 UTC] colinb969 at gmail dot com
Description:
------------
From inside a git clone completed by VFS for Git try scanning, creating or reading any files or directories inside (and including) 'src'. Will fail with an error like below.

No such file or directory in php shell code on line 1

Curiously enough lstat still works whilst stat doesn't.


Patches

Add a Patch

Pull Requests

Pull requests:

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2019-11-15 09:14 UTC] cmb@php.net
-Assigned To: +Assigned To: cmb
 [2020-04-15 15:34 UTC] cmb@php.net
-Status: Assigned +Status: Feedback
 [2020-04-15 15:34 UTC] cmb@php.net
Sorry for the long delay; I almost forgot about this ticket.

Could you please check these files/directories with

    fsutil reparsePoint query <filename>

and post the "Reparse Tag Value"s (first line of output) here?

Presumably, that would be either 0x9000001C or 0xA0000022.
 [2020-04-24 15:38 UTC] cmb@php.net
-Status: Feedback +Status: Verified
 [2020-04-24 15:38 UTC] cmb@php.net
Okay, I have now setup VFS for Git, and can confirm this bug.
The reparse tag appears to always be 0x9000001C.
 [2020-04-24 15:39 UTC] cmb@php.net
The following pull request has been associated:

Patch Name: Fix #79470: PHP incompatible with 3rd party file system on demand
On GitHub:  https://github.com/php/php-src/pull/5451
Patch:      https://github.com/php/php-src/pull/5451.patch
 [2020-04-27 07:34 UTC] cmb@php.net
-Status: Verified +Status: Closed
 
PHP Copyright © 2001-2020 The PHP Group
All rights reserved.
Last updated: Wed Oct 21 07:01:23 2020 UTC