Fatal error: Call to undefined function gmp_sign() in PHP
P粉848442185
P粉848442185 2023-07-17 18:43:05
0
1
414

I tried to use the gmp_sign function in my file to find out the sign of the value, but I got a fatal error similar to "call to undefined function".

P粉848442185
P粉848442185

reply all(1)
P粉300541798

这是Ubuntu/Linux吗?看起来系统上没有安装GMP。按照以下步骤进行操作:

  1. 使用apt-get install php5-gmp命令安装GMP。

  2. 在php.ini文件中添加extension=php_gmp.so。

你可以按照以下方式使用gmp_sign函数:

使用以下命令安装GMP:

apt-get install php5-gmp

添加以下内容到php.ini文件中:

extension=php_gmp.so


Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!