spatie / async

Easily run code asynchronously
https://spatie.be/en/opensource/php
MIT License
2.65k stars 179 forks source link

sh: line 0: exec: php: not found #218

Closed Sans84 closed 7 months ago

Sans84 commented 1 year ago

Laravel and all dependencies of the latest version. PHP 8.1 Valet

Pool::isSupported() return true

echo exec("/opt/homebrew/Cellar/php@8.1/8.1.24/bin/php -v");
// with Zend OPcache v8.1.24, Copyright (c), by Zend Technologies

echo shell_exec("/opt/homebrew/Cellar/php@8.1/8.1.24/bin/php -v");
// PHP 8.1.24 (cli) (built: Sep 28 2023 22:28:52) (NTS) Copyright (c) The PHP Group Zend Engine v4.1.24, Copyright (c) Zend Technologies with Zend OPcache v8.1.24, Copyright (c), by Zend Technologies
$pool = Pool::create()
        ->withBinary('/opt/homebrew/Cellar/php@8.1/8.1.24/bin/php');
$pool[] = async(function () use ($i) {
...
await($pool);

// sh: line 0: exec: php: not found
gofortiss commented 12 months ago

same

spatie-bot commented 7 months ago

Dear contributor,

because this issue seems to be inactive for quite some time now, I've automatically closed it. If you feel this issue deserves some attention from my human colleagues feel free to reopen it.