编程语言
首页 > 编程语言> > PHP,调用未定义的函数bccomp

PHP,调用未定义的函数bccomp

作者:互联网

这个问题已经在这里有了答案:            >            Reference – What does this error mean in PHP?                                    34个
我收到此错误

PHP致命错误:调用未定义函数bccomp()

有人知道如何解决吗?

——————–编辑————

我正在使用Ubuntu,并使用APT-GET命令安装了PHP-5.6

谢谢,

解决方法:

bccomp()函数属于BCMath软件包;如果未定义,则说明软件包本身存在问题.更具体地说,它未启用(因为自PHP 4.0.4起,libbcmath与PHP捆绑在一起).

引用the docs

These functions are only available if PHP was configured with
--enable-bcmath.

The Windows version of PHP has built-in support for this extension.
You do not need to load any additional extensions in order to use
these functions.

标签:php,bcmath
来源: https://codeday.me/bug/20191011/1893411.html