Skip to content

refactor(cuid2): leverage markrogoyski/math-php when GMP extension is unavailable #261

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jun 22, 2025

Conversation

xaevik
Copy link
Contributor

@xaevik xaevik commented Jun 22, 2025

Description

This pull request is a revisitation for the issue #255 where base_convert could not handle large arbitrary numbers. The quick fix solution was to make the PHP extension GMP required rather than optional as the suggested library in the issue had an incompatible license.

Having a hard dependency on an extension that may not be present in all environments was not really diserable long-term but fortunately the markrogoyski/math-php project has provided a working solution that is license compatible and allows for returning of the GMP extension to an optional state than being required.

… unavailable

Signed-off-by: Alan Brault <alan.brault@visus.io>
@xaevik xaevik self-assigned this Jun 22, 2025
Copy link

Quality Gate Failed Quality Gate failed

Failed conditions
57.1% Coverage on New Code (required ≥ 80%)

See analysis details on SonarQube Cloud

@xaevik xaevik merged commit 2298018 into main Jun 22, 2025
4 of 5 checks passed
@xaevik xaevik deleted the feature/math-php branch June 22, 2025 14:47
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