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

#25187 Lookup php binary in PHP_BINDIR first#25188

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

Closed
Deltachaos wants to merge1 commit intosymfony:2.8fromDeltachaos:bugfix-25187-2.8

Conversation

@Deltachaos
Copy link
Contributor

QA
Branch?2.8
Bug fix?yes
New feature?no
BC breaks?no
Deprecations?no
Tests pass?yes
Fixed tickets#25187
LicenseMIT

RefactoredSymfony\Component\Process\ExecutableFinder. ReusingSymfony\Component\Process\ExecutableFinder::findIn inSymfony\Component\Process\PhpExecutableFinder::find tofix#25187.

/**
* Replaces default suffixes of executable.
*
* @param array $suffixes
Copy link
Member

Choose a reason for hiding this comment

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

This can be removed as all the information are already part of the method signature.

@nicolas-grekas
Copy link
Member

Since this change is for a bugfix-only branch, I think the patch should be reduced to the strict minimum.
Refacto are only for master.

}

$name ='php';
foreach (array('','.exe','.bat','.cmd','.com')as$suffix) {

Choose a reason for hiding this comment

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

reading this, it feels like this logic belongs to the "executableFinder", isn't it?

Copy link
ContributorAuthor

Choose a reason for hiding this comment

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

Yes, i had changed the executable finder component first to allow looking for executables ONLY in given direcories (currently it is only able to use the given directories as fallback if the executable is not found in the environment path), but you said that it should be reduced to the strict minimum. So the question is: Where should we out this functionality for the bugfix? In long term it would make sense to extend the executable finder with this functionality.

@nicolas-grekas
Copy link
Member

Closing in favor of#26040, thank you@Deltachaos

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

Reviewers

@nicolas-grekasnicolas-grekasnicolas-grekas left review comments

@fabpotfabpotfabpot requested changes

Assignees

No one assigned

Projects

None yet

Milestone

2.8

Development

Successfully merging this pull request may close these issues.

4 participants

@Deltachaos@nicolas-grekas@fabpot@carsonbot

[8]ページ先頭

©2009-2025 Movatter.jp