Skip to content

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

Merged
mnapoli merged 1 commit into
4.xfrom
v4-no-duplicate-extensions
Nov 24, 2026
Merged

mnapoli merged 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.
@mnapoli
mnapoli merged commit 661c421 into 4.x Nov 24, 2026
9 checks passed
@mnapoli
mnapoli deleted the v4-no-duplicate-extensions branch November 24, 2026 21:53
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