Skip to content

PHP_EXTENSIONS detection is broken with "ext-date" #2372

@dome-meg

Description

@dome-meg

What happened?

I have a Symfony project that I wanted to build a static binary, but it fails.

Image

I've created a new symfony application and it worked. 😕

When passing a manuall maintained list of PHP_EXTENSIONS in the static-build.Dockerfile from the frankenphp website it works:

# ...

RUN EMBED=dist/app/ \
    PHP_EXTENSIONS="ctype,iconv,pdo_pgsql,intl,mbstring,zip,opcache,sodium,tokenizer,xml,dom,simplexml,xmlreader,xmlwriter" \
    ./build-static.sh

I see that the webmozart/assert requires ext-date in the composer.lock file. I tried to add the ext-date in my composer.json to see if this fixes it, but it doesn't.

So my guess is that the DependencyUtil.php tries to search for required extensions from the lock file but fail with this core extension.

Build Type

Docker (Debian Trixie)

Worker Mode

No

Operating System

GNU/Linux

CPU Architecture

x86_64

PHP configuration

phpinfo() output
not relevant

Relevant log output

Relevant log output
see screenshot

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions