-
-
Notifications
You must be signed in to change notification settings - Fork 9.6k
XmlFileLoader: bug in path when using network filesystem #24090
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
FYI, Windows also support mapping a network path to a local drive-name. |
This is true, however in this case I can't change the server configuration |
@Gregwar You should create a PR, if it's not the good solution the maintainers will tell you. It does feel like a good solution to me. |
Hey, thanks for your report! |
Just a quick reminder to make a comment on this. If I don't hear anything I'll close this. |
see #39716 |
…om network paths on Windows (xabbuh) This PR was merged into the 4.4 branch. Discussion ---------- [DependencyInjection] do not break when loading schemas from network paths on Windows | Q | A | ------------- | --- | Branch? | 4.4 | Bug fix? | yes | New feature? | no | Deprecations? | no | Tickets | Fix #24090 | License | MIT | Doc PR | Commits ------- acbafe8 do not break when loading schemas from network paths on Windows
On Windows, when using a filesystem that is located on the network, the path doesn't begin with a drive (like in
C:\some\path
) but with\\
(like in\\SOMEHOST\some\path
)This can cause the following error crash during the dependency container generation:
For instance, in
Component/DependencyInjection/Loader/XmlFileLoader.php
, replacing the following:With:
Fixes this issue.
I can make a PR, but I'm not sure this is the good solution.
The text was updated successfully, but these errors were encountered: