Topic: bcmath

Hi,
I installed php-bcmath, checked my PHP version first and php -v showed PHP 5.6.39
So I did yum install yum install php56-php-bcmath
yum list installed shows:
php56-php-bcmath.x86_64       5.6.39-1.el6.remi              @remi-php55   

But a simple test fails, test3.php:
<?php
echo bcadd("1", "2"); // 3
?>
Browser shows HTTP 500, log shows:
[Tue Dec 18 21:51:04 2018] [warn] [client 92.19.241.83] mod_fcgid: stderr: PHP Fatal error: 
Call to undefined function bcadd() in /var/www/vhosts/..../test3.php on line 3

Can you see what I'm doing wrong please?

Many thanks
Mike

Re: bcmath

Please: rpm -qa php\*

Are you confused by php56-php-bcmath vs php-bcmath ?
Read https://blog.remirepo.net/pages/English-FAQ#scl

And the wizard instructions.

Desktop: Fedora 29 x86_64 + rpmfusion + remi-test + remi-dev
Laptop:  Fedora 30 x86_64 + rpmfusion + remi (SCL only)
Hosting Server: CentOS 6.10 x86_64 with EPEL, remi, remi-php72 and remi-php72-test

Re: bcmath

Thanks!
With the help of plugin developer whose code is trying to use bcmath, I eventually did yum search php56 | grep bcmath
This showed php56u-bcmath also, when I installed that it worked.
It seems my PHP version is 5.6u even though php -5 showed 5.6