Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

[DI] dump OS-indepent paths in the compiled container#38139

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
fabpot merged 1 commit intosymfony:4.4fromnicolas-grekas:path-independent
Sep 10, 2020

Conversation

@nicolas-grekas
Copy link
Member

QA
Branch?4.4
Bug fix?yes
New feature?no
Deprecations?no
TicketsFix#38123
LicenseMIT
Doc PR-

This allows compiling on Windows and running on Linux (Docker).

@fabpot
Copy link
Member

Thank you@nicolas-grekas.

@fabpotfabpot merged commit44dd80f intosymfony:4.4Sep 10, 2020
$dump =print_r($dumper->dump(['as_files' =>true,'file' =>__DIR__,'hot_path_tag' =>'hot']),true);
if ('\\' === \DIRECTORY_SEPARATOR) {
$dump =str_replace('\\\\Fixtures\\\\includes\\\\foo.php','/Fixtures/includes/foo.php',$dump);
$dump =str_replace("'.\\DIRECTORY_SEPARATOR.'",'/',$dump);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

why this replacement here rather than updating the fixture to contain the OS-independent output (which would allow to see that it is actually generated) ?

Copy link
MemberAuthor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

Well, the output is not OS-independent: the paths are.
On Windows,\ are turned intoDIRECTORY_SEPARATOR
On Linux,/ are kept as is (and they work on Windows as you know)

Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

@stofstofstof left review comments

Assignees

No one assigned

Projects

None yet

Milestone

4.4

Development

Successfully merging this pull request may close these issues.

4 participants

@nicolas-grekas@fabpot@stof@carsonbot

[8]ページ先頭

©2009-2025 Movatter.jp