Closed
Description
Symfony version(s) affected
6.3.5
Description
PR #50787 introduced the usage of the \SIGTERM and \SIGINT constants in src/Symfony/Component/Messenger/Command/ConsumeMessagesCommand.php
, but these constants are only available when the pcntl extension is enabled.
So far the extension was not necessary to use the messenger (at least it worked in our environment without issues), but since upgrading to 6.3.5 the messenger:consume
command is unable to start because of the undefined constant.
Exception trace:
at /srv/www/vendor/symfony/messenger/Command/ConsumeMessagesCommand.php:261
Symfony\Component\Messenger\Command\ConsumeMessagesCommand->getSubscribedSignals() at /srv/www/vendor/symfony/console/Application.php:1003
Symfony\Component\Console\Application->doRunCommand() at /srv/www/vendor/symfony/framework-bundle/Console/Application.php:91
Symfony\Bundle\FrameworkBundle\Console\Application->doRunCommand() at /srv/www/vendor/symfony/console/Application.php:320
Symfony\Component\Console\Application->doRun() at /srv/www/vendor/symfony/framework-bundle/Console/Application.php:80
Symfony\Bundle\FrameworkBundle\Console\Application->doRun() at /srv/www/vendor/symfony/console/Application.php:174
Symfony\Component\Console\Application->run() at /srv/www/bin/console:42
How to reproduce
Make sure the pcntl extension is not enabled and run the messenger:consume
command. It fails immediately.
Possible Solution
No response
Additional Context
No response