M
M
mrFlyer2021-04-11 20:57:37
Laravel
mrFlyer, 2021-04-11 20:57:37

What's with the weird error when trying to start a queue?

Hello.

PHP 8.0.2
Laravel 8 I get

an error when starting queue processing, how to overcome it?

$ /opt/php80/bin/php artisan queue:work

   Error  Call to undefined function Illuminate\Queue\pcntl_signal()
   at vendor/laravel/framework/src/Illuminate/Queue/Worker.php:645
    641▕     protected function listenForSignals()
    642▕     {
    643▕         pcntl_async_signals(true);
    644▕
  ➜ 645▕         pcntl_signal(SIGTERM, function () {
    646▕             $this->shouldQuit = true;
    647▕         });
    648▕
    649▕         pcntl_signal(SIGUSR2, function () {


PHP's pcntl extension is enabled. I may be dumb in the evening, but why is he looking for the pcntl_signal function by the Illuminate\Queue namespace?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
M
mrFlyer, 2021-04-11
@mrFlyer

in PHP.ini these functions were listed as disabled:
disable_functions = [remove here]

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question