From 0b8a0504a21c7d784392c31d448ecc614259ee66 Mon Sep 17 00:00:00 2001 From: Jerry Ma Date: Wed, 26 Jun 2024 11:30:19 +0800 Subject: [PATCH] Update GMP ver, using official 6.3.0 version (#483) * Update GMP ver, using official 6.3.0 version * Add GMP test --- config/source.json | 8 ++++++-- src/globals/test-extensions.php | 2 +- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/config/source.json b/config/source.json index 8fdfc85c..5dadd944 100644 --- a/config/source.json +++ b/config/source.json @@ -179,8 +179,12 @@ } }, "gmp": { - "type": "ghtagtar", - "repo": "alisw/GMP", + "type": "url", + "url": "https://dl.static-php.dev/static-php-cli/deps/gmp/gmp-6.3.0.tar.xz", + "alt": { + "type": "ghtagtar", + "repo": "alisw/GMP" + }, "license": { "type": "text", "text": "Since version 6, GMP is distributed under the dual licenses, GNU LGPL v3 and GNU GPL v2. These licenses make the library free to use, share, and improve, and allow you to pass on the result. The GNU licenses give freedoms, but also set firm restrictions on the use with non-free programs." diff --git a/src/globals/test-extensions.php b/src/globals/test-extensions.php index ec97f329..69260524 100644 --- a/src/globals/test-extensions.php +++ b/src/globals/test-extensions.php @@ -19,7 +19,7 @@ $upx = true; // If you want to test your added extensions and libs, add below (comma separated, example `bcmath,openssl`). $extensions = match (PHP_OS_FAMILY) { - 'Linux', 'Darwin' => 'imagick', + 'Linux', 'Darwin' => 'imagick,gmp', 'Windows' => 'mbstring,pdo_sqlite,mbregex', };