Skip to content

Add the gmp extension, installed but disabled by default - #368

Merged
mnapoli merged 2 commits into
4.xfrom
v4-gmp
Nov 25, 2026
Merged

mnapoli merged 2 commits into
4.xfrom
v4-gmp

Conversation

@mnapoli

@mnapoli mnapoli commented Nov 25, 2026 •

Copy link
Copy Markdown
Member

gmp as a shared extension, like intl, soap, gd: installed but not loaded, enabled with extension=gmp in php/conf.d/*.ini.

libgmp10 is already in the Ubuntu base image (coreutils depends on it), so the only addition to the image is gmp.so.

Checked on Lambda (PHP 8.5, arm64, container image built from this branch, extension=gmp in php/conf.d): gmp_pow() and gmp_nextprime() work in the function and FPM runtimes, no warnings in the logs. gmp.so is 131 KB.

@mnapoli mnapoli self-assigned this Nov 25, 2026
# Conflicts:
#	Dockerfile
#	tests/test_2_extensions.php
#	tests/test_3_manual_enabling_extensions.php
#	tests/test_3_manual_extensions.ini
@mnapoli
mnapoli merged commit addd69d into 4.x Nov 25, 2026
9 checks passed
@mnapoli
mnapoli deleted the v4-gmp branch November 25, 2026 23:03
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