Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Fatal error: Call to undefined function bccomp()

Tags:

php

bcmath

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


1 Answers

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.

like image 199
raina77ow Avatar answered Jul 17 '26 15:07

raina77ow



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!