Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
1.6k views
in Technique[技术] by (71.8m points)

php - Fatal error: Call to undefined function bccomp()

I am getting this error

PHP Fatal error: Call to undefined function bccomp()

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

See Question&Answers more detail:os

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)

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).

Quoting 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.


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...