What happened?
I have a Symfony project that I wanted to build a static binary, but it fails.
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
Relevant log output
Relevant log output
What happened?
I have a Symfony project that I wanted to build a static binary, but it fails.
I've created a new symfony application and it worked. 😕
When passing a manuall maintained list of PHP_EXTENSIONS in the
static-build.Dockerfilefrom the frankenphp website it works:I see that the
webmozart/assertrequiresext-datein thecomposer.lockfile. I tried to add theext-datein mycomposer.jsonto see if this fixes it, but it doesn't.So my guess is that the
DependencyUtil.phptries 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
Relevant log output
Relevant log output