Skip to content

Command "about" returned error "Error: proc_open(): posix_spawn() failed: No such file or directory" if composer.phar is present #51820

Description

@poldixd

Laravel Version

11.10.0

PHP Version

8.3.8

Database Driver & Version

No response

Description

If the file "composer.phar" is located in the root directory of the project, the error "Error: proc_open(): posix_spawn() failed: No such file or directory" is displayed when the command "php artisan about" is executed.

However, this error is only displayed if symfony/process version >7.1 is installed. If version 7.0.x is installed, there are no problems.

If I delete the "composer.phar", everything works properly again.

Steps To Reproduce

I have created a repo on github with a new Laravel and a composer.phar: https://github.com/poldixd/laravel-composer-phar-issue/actions/runs/9548444149/job/26315645555

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions