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

Appearance settings

PhpExecutableFinder may return directory instead of binary #45620

Copy link
Copy link
Closed
@mglaman

Description

@mglaman
Issue body actions

Symfony version(s) affected

3.4 | 4.4

Description

We're using \Symfony\Component\Process\PhpExecutableFinder in Drupal's Upgrade Status module to execute PHPStan from a UI. In different environments leveraging Plesk or ISPConfig, the returned path from \Symfony\Component\Process\PhpExecutableFinder::find is a directory.

How to reproduce

I haven't been able to reproduce since I do not have access to a Plesk server. But directories are technically executable.

Possible Solution

The checks for is_exectuable may need a !is_dir check?

Additional Context

No response

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      Morty Proxy This is a proxified and sanitized view of the page, visit original site.