Skip to content

PhpExecutableFinder may return directory instead of binary #45620

@mglaman

Description

@mglaman

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