致命错误:在 php 中调用未定义的函数 gmp_sign()

Plu*_*tus 3 php

我试图在我的文件中使用 gmp_sign 来查找值的符号,但是我收到一个错误,例如调用未定义函数并出现致命错误。

Him*_*yay 5

是 Ubuntu/Linux 吗?好像系统上没有安装GMP。按着这些次序:

  1. 安装 GMP 与 apt-get install php5-gmp

  2. 添加extension=php_gmp.so到 php.ini