Closed heychazza closed 2 months ago
PR #52744 should fix this issue.
Hey @crynobone, seems the issue still exists (not being able to use Concurrency) when using Laravel Herd.
Latest Herd (just updated), Laravel 11.23.4, PHP 8.3.11
For future travelers, if you're using the latest version of Laravel, the issue isn't Herd. Trying using the fork driver as described here: https://laravel.com/docs/11.x/concurrency#how-it-works
For future travelers, if you're using the latest version of Laravel, the issue isn't Herd. Trying using the fork driver as described here: https://laravel.com/docs/11.x/concurrency#how-it-works
The problem is fork is only supported in CLI. Do we have a solution without using fork?
PR #52744 should fix this issue.
I still have this issue in Laravel 11.30.0
@misodrobny please submit new bug report with reproducing code instead of commenting on closed issue.
Laravel Version
11.23.2
PHP Version
8.3.11
Database Driver & Version
SQLite
Description
The
Concurrency
facade returns a "Trying to access array offset on null" error, when attempting to use therun
method. This error seems to be at$result['successful']
within the ProcessDriver class.From some testing I've done myself it still seems that Laravel is unable to find the php binary from Herd, as
(new PhpExecutableFinder)->find(false)
returnsfalse
.Steps To Reproduce
Create a route like the following:
Laravel will error out at the Concurrency::run line.