PHP Warning: Module "gmp" is already loaded in Unknown on line 0
PHP
扩展gmp
被加载两次,报错如下:
PHP Warning: Module "gmp" is already loaded in Unknown on line 0
解决办法:
Not all PHP modules are loaded as separate modules and are part of the
PHP base binary. In this case the module is loaded without a separate
load statement/configuration. If in addition a separate configuration
file exists, e.g. /etc/php7/fpm/conf.d/gmp.ini, the web server tries
to load the module twice which can cause these kind of messages.
//打开.ini配置文件,将下面这行注销即可;
extension=gmp.so
原因:
是因为.ini
文件底部又加载了一次,如下:
extension = /www/server/php/80/lib/php/extensions/no-debug-non-zts-20200930/gmp.so