Thanks to visit codestin.com
Credit goes to github.com

Skip to content

[Process] Don't return executable directories in PhpExecutableFinder #45676

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

Merged

Conversation

fancyweb
Copy link
Contributor

@fancyweb fancyweb commented Mar 8, 2022

Q A
Branch? 4.4
Bug fix? yes
New feature? no
Deprecations? no
Tickets #45620
License MIT
Doc PR -

Directories can be executable and be wrongly returned if some env vars have directory paths as their values.

@fancyweb fancyweb force-pushed the process/php-executable-finder-executable-dir branch from 9c7daa1 to 947152b Compare March 8, 2022 17:19
}
}

public function testFindWithExecutableDirectory()
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Only the first change is tested (PHP_BINARY env var). The rest is hard to test since we are in cli mode 😓

@fabpot
Copy link
Member

fabpot commented Mar 12, 2022

Thank you @fancyweb.

@fabpot fabpot merged commit 63be6fa into symfony:4.4 Mar 12, 2022
This was referenced Apr 2, 2022
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.

4 participants