Skip to content

Don't ship the extensions twice in the runtime image - #364

Open
mnapoli wants to merge 1 commit into
4.xfrom
v4-no-duplicate-extensions
Open

mnapoli wants to merge 1 commit into
4.xfrom
v4-no-duplicate-extensions

Conversation

@mnapoli

@mnapoli mnapoli commented Nov 23, 2026

Copy link
Copy Markdown
Member

The runtime stage copied /usr/local/lib/php/extensions, which also contains PHP's own extension directory (no-debug-non-zts-*) with the same .so files: about 1.8 MB of duplicates (2.3 MB with gd).

It now copies only the .so files. The build stage (bref/build-php-XX) keeps PHP's directory, where pecl and phpize install extensions.

The runtime stage copied /usr/local/lib/php/extensions with PHP's own extension directory inside it (no-debug-non-zts-*), which holds the same .so files: about 1.8 MB.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant