dnf install php-gmp
Programming Tips - php: Uncaught Error: Call to undefined function gmp_init() in /path/to/myfile.php:999
Date: 2025mar24
Language: php
Distro: fedora
Q. php: Uncaught Error: Call to undefined function gmp_init() in /path/to/myfile.php:999
A. It needs the GMP (GNU Multiple Precision) package.
On Fedora/RedHat/CentoOS do: