PHP,调用未定义的函数bccomp [英] PHP, Call to undefined function bccomp

查看:329
本文介绍了PHP,调用未定义的函数bccomp的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我收到此错误

PHP Fatal error: Call to undefined function bccomp()

有人知道如何解决吗?

--------------------编辑------------

--------------------edit ------------

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

I am using Ubuntu, and I installed PHP-5.6 using APT-GET command

谢谢

推荐答案

bccomp()函数属于

bccomp() function belongs to BCMath package; if it's undefined, apparently, there's something wrong with the package itself. To be more specific, it's not enabled (as since PHP 4.0.4, libbcmath is bundled with PHP).

引用文档:

仅当PHP配置了以下功能时,这些功能才可用 --enable-bcmath.

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

Windows版本的PHP对此扩展具有内置支持. 您无需加载任何其他扩展名即可使用 这些功能.

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,调用未定义的函数bccomp的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆