我正在尝试在我的 Centos 7 上添加 bcmath 扩展,它安装了 PHP 5.6 以及 nginx 和 php-fpm
我跑了
yum install php56-bcmath
上面安装了 bcmath 扩展,我可以在 phpinfo() 输出的“模块”列下看到它。
但是,当我调用 php 函数get_loaded_extensions时,我没有在加载的扩展列表中看到 bcmath。
安装 bcmath 包后我重新启动了 php-fpm 和 nginx。
我错过了什么吗?
get_loaded_extensions() 的输出
Array
(
[0] => Core
[1] => date
[2] => ereg
[3] => libxml
[4] => openssl
[5] => pcre
[6] => zlib
[7] => filter
[8] => hash
[9] => Reflection
[10] => SPL
[11] => session
[12] => standard
[13] => cgi-fcgi
[14] => bz2
[15] => calendar
[16] => ctype
[17] => curl
[18] => dom
[19] => mbstring
[20] => fileinfo
[21] => ftp
[22] => gd
[23] => gettext
[24] => iconv
[25] => exif
[26] => mcrypt
[27] => mysqlnd
[28] => PDO
[29] => Phar
[30] => posix
[31] => shmop
[32] => SimpleXML
[33] => sockets
[34] => sqlite3
[35] => sysvmsg
[36] => sysvsem
[37] => sysvshm
[38] => tokenizer
[39] => xml
[40] => xmlwriter
[41] => xsl
[42] => mysql
[43] => mysqli
[44] => pdo_mysql
[45] => pdo_sqlite
[46] => wddx
[47] => xmlreader
[48] => json
[49] => zip
[50] => mhash
)