Skip to content

[Messenger] Undefined constant "SIGTERM" #51790

@digilist

Description

@digilist

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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      pFad - Phonifier reborn

      Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

      Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


      Alternative Proxies:

      Alternative Proxy

      pFad Proxy

      pFad v3 Proxy

      pFad v4 Proxy