Skip to content
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

[Process] Check PHP_BINDIR before $PATH in PhpExecutableFinder #26040

Merged
merged 1 commit into from
Feb 12, 2018

Conversation

nicolas-grekas
Copy link
Member

Q A
Branch? 2.7
Bug fix? yes
New feature? no
BC breaks? no
Deprecations? no
Tests pass? yes
Fixed tickets #25187
License MIT
Doc PR -

@@ -62,6 +62,10 @@ public function find($includeArgs = true)
}
}

if (is_executable($php = PHP_BINDIR.'/php'.('\\' === DIRECTORY_SEPARATOR ? '.exe' : ''))) {
Copy link
Member

Choose a reason for hiding this comment

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

This logic does not take into account the PATHEXT env var as done in ExecutableFinder.

Copy link
Member Author

Choose a reason for hiding this comment

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

php binaries always are .exe, in php_bindir

@fabpot
Copy link
Member

fabpot commented Feb 12, 2018

Thank you @nicolas-grekas.

@fabpot fabpot merged commit 3a470c4 into symfony:2.7 Feb 12, 2018
fabpot added a commit that referenced this pull request Feb 12, 2018
…nder (nicolas-grekas)

This PR was merged into the 2.7 branch.

Discussion
----------

[Process] Check PHP_BINDIR before $PATH in PhpExecutableFinder

| Q             | A
| ------------- | ---
| Branch?       | 2.7
| Bug fix?      | yes
| New feature?  | no
| BC breaks?    | no
| Deprecations? | no
| Tests pass?   | yes
| Fixed tickets | #25187
| License       | MIT
| Doc PR        | -

Commits
-------

3a470c4 [Process] Check PHP_BINDIR before $PATH in PhpExecutableFinder
@nicolas-grekas nicolas-grekas deleted the proc-exe branch February 19, 2018 10:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants