1 (edited by Gerard 2023-01-03 09:59:20)

Topic: Is GMP compiled into the PHP 8.1 repos

Hi
Could anyone tell me whether the GMP library (GNU Multiple Precision) is compiled into the PHP 8.1 repos?

The wordpress browser notification plugin Perfecty Push makes extensive use of it and I wanted to know *offically* if GMP is compiled in or not.
https://perfecty.org

It looks like it was in 7.4 but not 8.1 or 8.2.

Cheers!

Re: Is GMP compiled into the PHP 8.1 repos

> Could anyone tell me whether the GMP library (GNU Multiple Precision) is compiled into the PHP 8.1 repos?

Of course it is.

See the wizard instructions... (for additional extensions, works for all available extensions, using their name)
https://rpms.remirepo.net/wizard/

So: 

yum install php-gmp
Laptop:  Fedora 38 + rpmfusion + remi (SCL only)
x86_64 builder: Fedora 39 + rpmfusion + remi-test
aarch64 builder: RHEL 9 with EPEL
Hosting Server: CentOS 8 Stream with EPEL, rpmfusion, remi

3 (edited by Gerard 2023-01-05 12:29:53)

Re: Is GMP compiled into the PHP 8.1 repos

Hi Remi,
thanks for the quick reply.

Yes, I'd have thought so as well but seemingly not, unless I'm doing something wrong.

This is the repository I've setup, I know its only fc34, I promise I'l upgrade soon.

PunBB bbcode test


And i have the following installed

rpm -qa |sort|grep php-
php-8.1.9-1.fc34.remi.x86_64
php-bcmath-8.1.9-1.fc34.remi.x86_64
php-brotli-0.13.1-1.fc34.remi.8.1.x86_64
php-cli-8.1.9-1.fc34.remi.x86_64
php-common-8.1.9-1.fc34.remi.x86_64
php-devel-8.1.9-1.fc34.remi.x86_64
php-fedora-autoloader-1.0.1-4.fc34.noarch
php-fpm-8.1.9-1.fc34.remi.x86_64
php-gd-8.1.9-1.fc34.remi.x86_64
php-imap-8.1.9-1.fc34.remi.x86_64
php-intl-8.1.9-1.fc34.remi.x86_64
php-mbstring-8.1.9-1.fc34.remi.x86_64
php-mysqlnd-8.1.9-1.fc34.remi.x86_64
php-nikic-php-parser4-4.13.2-1.fc34.noarch
php-opcache-8.1.9-1.fc34.remi.x86_64
php-pdo-8.1.9-1.fc34.remi.x86_64
php-pear-1.10.13-1.fc34.remi.noarch
php-pecl-apcu-5.1.21-1.fc34.remi.8.1.x86_64
php-pecl-apcu-devel-5.1.21-1.fc34.remi.8.1.x86_64
php-pecl-mailparse-3.1.3-1.fc34.remi.8.1.x86_64
php-pecl-mcrypt-1.0.5-1.fc34.remi.8.1.x86_64
php-pecl-msgpack-2.2.0~RC1-4.fc34.remi.8.1.x86_64
php-pecl-xdebug3-3.1.5-1.fc34.remi.8.1.x86_64
php-pecl-zip-1.21.0-3.fc34.remi.8.1.x86_64
php-process-8.1.9-1.fc34.remi.x86_64
php-soap-8.1.9-1.fc34.remi.x86_64
php-sodium-8.1.9-1.fc34.remi.x86_64
php-xml-8.1.9-1.fc34.remi.x86_64
php-zstd-0.11.0-1.fc34.remi.8.1.x86_64

When I search for php-gmp I dont get much luck

[root@xxxxx public_html]# yum search php-gmp
Last metadata expiration check: 0:27:09 ago on Thu 05 Jan 2023 10:17:18 AM GMT.
No matches found.

Re: Is GMP compiled into the PHP 8.1 repos

And the following tiny piece of GMP php code is online to demonstrate.

<?php
$abs1 = gmp_abs('274982683358');
$abs2 = gmp_abs('-274982683358');

echo gmp_strval($abs1).'\n';
echo gmp_strval($abs2).'\n';
?>

LINK HERE

Re: Is GMP compiled into the PHP 8.1 repos

It is there https://rpms.remirepo.net/fedora/34/php … p-gmp.html

Laptop:  Fedora 38 + rpmfusion + remi (SCL only)
x86_64 builder: Fedora 39 + rpmfusion + remi-test
aarch64 builder: RHEL 9 with EPEL
Hosting Server: CentOS 8 Stream with EPEL, rpmfusion, remi