Skip to content

Semaphore (sysvsem) support #2024

@dciprian-petrisor

Description

@dciprian-petrisor

Hello,

I recently upgraded my project to Symfony 7.3 and encountered an issue due to a new Messenger component middleware they've introduced (not particularly important so I'll skip over it).

The jist is, their middleware uses Semaphore (sysvsem) under the hood to deduplicate messages.

This failed miserably when I deployed to lambda using Bref, as I discovered the PHP compiled in the Docker image was not compiled using --enable-sysvsem.
https://www.php.net/manual/en/sem.installation.php

I was wondering if there is any limitation regarding this with Bref/Lambda or this was just something not taken into consideration.
I searched the issues/PRs in this repo but found no references to sysvsem itself.

As far as I found out, Semaphore support in PHP relies on semget/semop system calls in Linux, so they're just wrappers around that.

Should Bref compile with --enable-sysvsem if there is no issue with this particular mechanism in Lambda?

I used bref/arm-build-php-82:2 to build my image.

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