| | |
| 今天搞到一个源码,搭建的时候发现没有GMP扩展,提示GMP php Extension 百度了一下,发现都是宝塔的解决办法,然后都是些Linux系统的安装扩展的命令,我本地环境用的phpstudy,怎么搞命令安装啊 然后就想到跟以前开启拓展一样,打开对应版本的php.ini文件,搜索gmp,果然找到了;extension=gmp,这就是了,然后把前面的分号;去掉保存,重启APACHE就可以了 宝塔的话我估计也是这样,宝塔一般是改掉后,重载配置文件再重启PHP就行了,不需要重启APACHE。 好了关于PHP缺少gmp扩展的解决办法到这里就结束了,希望能帮助到你。 开启php exif扩展的办法也差不多 下面列一下GMP函数列表:gmp_abs – Absolute value
gmp_add – Add numbers
gmp_and – Bitwise AND
gmp_clrbit – Clear bit
gmp_cmp – Compare numbers
gmp_div – 别名 gmp_div_q
gmp_divexact – Exact division of numbers
gmp_div_q – Divide numbers
gmp_div_qr – Divide numbers and get quotient and remainder
gmp_div_r – Remainder of the division of numbers
gmp_fact – Factorial
gmp_gcd – Calculate GCD
gmp_gcdext – Calculate GCD and multipliers
gmp_hamdist – Hamming distance
gmp_init – Create GMP number
gmp_intval – Convert GMP number to integer
gmp_invert – Inverse by modulo
gmp_jacobi – Jacobi symbol
gmp_legendre – Legendre symbol
gmp_mod – Modulo operation
gmp_mul – Multiply numbers
gmp_neg – Negate number
gmp_nextprime – Find next prime number
gmp_or – Bitwise OR
gmp_perfect_square – Perfect square check
gmp_popcount – Population count
gmp_pow – Raise number into power
gmp_powm – Raise number into power with modulo
gmp_prob_prime – Check if number is “probably prime”
gmp_random – Random number
gmp_scan0 – Scan for 0
gmp_scan1 – Scan for 1
gmp_setbit – Set bit
gmp_sign – Sign of number
gmp_sqrt – Calculate square root
gmp_sqrtrem – Square root with remainder
gmp_strval – Convert GMP number to string
gmp_sub – Subtract numbers
gmp_testbit – Tests if a bit is set
gmp_xor – Bitwise XOR
| |
| | |